Sha256: 3be74105a52701176df29c79b7214ade0315ba316f86b1a0913be039f67b54d8

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

module Bebox
  module GeneralCommands

    def self.extended(base)
      base.load_commands
    end

    def load_commands
      # Project creation phase command
      desc 'Create a new bebox project through a simple wizard'
      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('You did not supply a project name'))
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bebox-0.1.3 lib/bebox/commands/general_commands.rb
bebox-0.1.2 lib/bebox/commands/general_commands.rb
bebox-0.1.1 lib/bebox/commands/general_commands.rb
bebox-0.1.0 lib/bebox/commands/general_commands.rb