lib/minke/command.rb in minke-1.13.20 vs lib/minke/command.rb in minke-1.14.0

- old
+ new

@@ -16,16 +16,16 @@ ENV['DOCKER_NETWORK'] = network_name logger = Minke::Logging.create_logger(self.verbose) shell = Minke::Helpers::Shell.new(logger) - variables = Minke::Generators::ConfigVariables.new.tap do |v| - v.application_name = @config.application_name - v.namespace = @config.namespace - v.src_root = File.expand_path('../') - end - +# variables = Minke::Generators::ConfigVariables.new.tap do |v| +# v.application_name = @config.application_name +# v.namespace = @config.namespace +# v.src_root = File.expand_path('../') +# end + task_runner = Minke::Tasks::TaskRunner.new ({ :ruby_helper => Minke::Helpers::Ruby.new, :copy_helper => Minke::Helpers::Copy.new, :service_discovery => Minke::Docker::ServiceDiscovery.new(project_name, Minke::Docker::DockerRunner.new(logger), network_name), :logger_helper => logger @@ -72,11 +72,12 @@ :build => Minke::Tasks::Build.new(dependencies), :test => Minke::Tasks::Test.new(dependencies), :run => Minke::Tasks::Run.new(dependencies), :build_image => Minke::Tasks::BuildImage.new(dependencies), :cucumber => Minke::Tasks::Cucumber.new(dependencies), - :push => Minke::Tasks::Push.new(dependencies) + :push => Minke::Tasks::Push.new(dependencies), + :shell => Minke::Tasks::Shell.new(dependencies) } end def fetch if config.fetch != nil @@ -126,7 +127,13 @@ def push tasks = create_tasks :push tasks[:push].run end + def shell + if config.shell != nil + tasks = create_tasks :shell + tasks[:shell].run + end + end end end