Sha256: b0c36d2ec1e399b251d6f99d15bd5ef459ff7020c7def8996c45ceb982de43f6

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

module Bebox
  module GeneralCommands

    def self.extended(base)
      base.load_commands
    end

    def load_commands
      # Project creation phase command
      desc _('cli.project.new.desc')
      arg_name '[project_name]'
      command :new do |project_command|
        project_command.action do |global_options,options,args|
          if args.count > 0
            Bebox::ProjectWizard.new.create_new_project("bebox-#{args.first}")
          else
            help_now!(error(_('cli.project.new.name_arg_missing')))
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bebox-0.1.5 lib/bebox/commands/general_commands.rb
bebox-0.1.4 lib/bebox/commands/general_commands.rb