Sha256: 815f67b0d71e275ed62253d2e74a8e8cafff3b2376cd5a36fffa3fa9709d058d

Contents?: true

Size: 750 Bytes

Versions: 1

Compression:

Stored size: 750 Bytes

Contents

require_relative "./build_promotion_tool/version"
require_relative "./build_promotion_tool/config.rb"
require_relative './build_promotion_tool/controller/deploy_controller'

module BuildPromotionTool
  class Deploy
    include Config

    user_comms  = UserCommsHelper.new(STDOUT, STDIN)
    git_helper = GitHelper.new
    git_helper.fetch_tags
    tags = git_helper.all_tags
    tags.select {|tag| /^dev|test|stage-v\d+.\d+.\d*$/ =~ tag}
    develop_tag_generator = DevelopTagGenerator.new(tags)
    if ARGV[0].nil?
      user_comms.error_incorrect_environ
    else
      deploy = DeployController.new(ARGV[0], git_helper, user_comms, develop_tag_generator, OtherTagGenerator.new, Config.tag_types)
      deploy.environment_choice
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
build_promotion_tool-0.1.1 lib/build_promotion_tool.rb