Class: BigcommerceTool::CLI

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

Instance Method Summary collapse

Instance Method Details

#deployObject



26
27
28
# File 'lib/bigcommerce_tool/cli.rb', line 26

def deploy
  BigcommerceTool::Deployer.new(options).deploy
end

#initObject



19
20
21
# File 'lib/bigcommerce_tool/cli.rb', line 19

def init
  puts "dump sane configs"
end

#serveObject



13
14
15
16
# File 'lib/bigcommerce_tool/cli.rb', line 13

def serve
  options.each { |key, value| BigcommerceTool::App.set key.to_sym, value }
  Rack::Server.start(app: Rack::ShowExceptions.new(Rack::Lint.new(BigcommerceTool::App.new)), Port: 9292)
end