class Brick::CLI::ServiceNew

require 'byebug'

Public Instance Methods

run() click to toggle source
# File lib/brick/cli/service_new.rb, line 22
def run
  
  if ::Brick::Config[:build].nil? and ::Brick::Config[:image].nil?
    show_usage
    puts ("You must specify the way of creating service, either from build or image".colorize(:red))
    exit 1
  end
  
  if !::Brick::Config[:build].nil? and !::Brick::Config[:image].nil?
     show_usage
     puts ("You must specify the way of creating service, either from build or image. You can't choose both".colorize(:red))
    exit 1
  end
  
  puts "hello #{banner}"
  
   working_dir = Dir.pwd
  
  value=Brick::Generators::NewServiceGenerator.start([working_dir])
  byebug
  puts "value=#{value}"
end