Class: Blix::Cli::Commands

Inherits:
Thor
  • Object
show all
Defined in:
lib/blix/cli/commands.rb

Instance Method Summary collapse

Instance Method Details

#new(name) ⇒ Object

Raises:



13
14
15
16
17
18
19
20
# File 'lib/blix/cli/commands.rb', line 13

def new(name)

  raise Error, "invalid path" unless name =~ /^[a-zA-Z_\-\.0-9]+$/

  app = Application.new(name, options)
  app.setup

end

#updateObject



31
32
33
34
35
36
# File 'lib/blix/cli/commands.rb', line 31

def update

  app = Application.new('.', options)
  app.setup

end