class JobSeeds

  def self.seed
    puts "Seeding Jobs"

    Job.manufacture(
      job: {
        code: "assistant",
        name: "Assistant",
        description: "",
        dwellings: [
          { frequency:(1..40),   where:"office",      time:30 },
          { frequency:(41..50),  where:"common_room", time:30 },
          { frequency:(51..70),  where:"kitchen",     time:10 },
          { frequency:(71..90),  where:"lounge",      time:30 },
          { frequency:(91..96),  where:"storage",     time:5  },
          { frequency:(97..100), where:"bathroom",    time:5  },
        ],
      },
      skills: {}
    )


    server_description = """
      TODO: Write a description for the server job. These are all being written
      as multiline strings but they should look fine in HTML.
    """.squish

    Job.manufacture(
      job: {
        code: "server",
        name: "Server",
        base_location: "common_room",
        description: server_description,
        dwellings: [
          { frequency:(1..50),   where:"common_room", time:10 },
          { frequency:(51..80),  where:"kitchen",     time:5  },
          { frequency:(81..95),  where:"lounge",      time:15 },
          { frequency:(96..100), where:"bathroom",    time:5  },
        ],
      },
      skills: { server:10 }
    )


    barkeep_description = """
      TODO: Write a description for the server job. Still, we probably want to
      squeeze extra spaces and lines out of them anyway.
    """.squish

    Job.manufacture(
      job: {
        code: "barkeep",
        name: "Barkeep",
        base_location: "common_room",
        description: barkeep_description,
        dwellings: [
          { frequency:(1..80),   where:"common_room", time:60 },
          { frequency:(81..95),  where:"lounge",      time:20 },
          { frequency:(96..100), where:"bathroom",    time:5  },
        ],
      },
      skills: { barkeep:10 }
    )


    bouncer_description = """
      TODO: Write a description for the server job. Otherwise they'll look
      strange in the database.
    """.squish

    Job.manufacture(
      job: {
        code: "bouncer",
        name: "Bouncer",
        base_location: "common_room",
        description: bouncer_description,
        dwellings: [
          { frequency:(1..80),   where:"common_room", time:60 },
          { frequency:(81..95),  where:"lounge",      time:20 },
          { frequency:(96..100), where:"bathroom",    time:5  },
        ],
      },
      skills: { melee:10 }
    )
  end

end
