Sha256: 7930c4cb292a3fb31fd78613bde220e85678bb92f15c3e381168f6facd813f03

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 Bytes

Contents

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

module BuildPromotionTool
  class Deploy
    include Configure

    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, Configure.tag_types)
      deploy.environment_choice
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
build_promotion_tool-0.1.3 lib/build_promotion_tool.rb
build_promotion_tool-0.1.2 lib/build_promotion_tool.rb