class Sambot::Tasks::Verify

Public Instance Methods

check_configuration() click to toggle source
# File lib/sambot/tasks/verify.rb, line 20
def check_configuration
  unless ENV['TEAMCITY_USERNAME']
    UI.error("Please ensure the TEAMCITY_USERNAME environment variable is set before running this command")
    exit
  end
  unless ENV['TEAMCITY_PASSWORD']
    UI.error("Please ensure the TEAMCITY_USERNAME environment variable is set before running this command")
    exit
  end
end
run(options) click to toggle source
# File lib/sambot/tasks/verify.rb, line 11
def run(options)
  check_configuration
  config = Config.read
  ::TeamCity.create_cookbook_build(config)
  ::Sambot::SourceControl.create_repository(config)
  ::Sambot::SourceControl.set_git_remote(config)
  ::Sambot::SourceControl.add_deploy_key(config)
end