Method: Bunto::Commands::New.init_with_program

Defined in:
lib/bunto/commands/new.rb

.init_with_program(prog) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/bunto/commands/new.rb', line 7

def init_with_program(prog)
  prog.command(:new) do |c|
    c.syntax "new PATH"
    c.description "Creates a new Bunto site scaffold in PATH"

    c.option "force", "--force", "Force creation even if PATH already exists"
    c.option "blank", "--blank", "Creates scaffolding but with empty files"
    c.option "skip-bundle", "--skip-bundle", "Skip 'bundle install'"

    c.action do |args, options|
      Bunto::Commands::New.process(args, options)
    end
  end
end