Class: Inkcite::Cli::Base

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

Instance Method Summary collapse

Instance Method Details

#buildObject



25
26
27
28
# File 'lib/inkcite/cli/base.rb', line 25

def build
  require_relative 'build'
  Cli::Build.invoke(email, options)
end

#init(name) ⇒ Object



39
40
41
42
# File 'lib/inkcite/cli/base.rb', line 39

def init name
  require_relative 'init'
  Cli::Init.invoke(name, options)
end

#preview(to = :developer) ⇒ Object



55
56
57
58
# File 'lib/inkcite/cli/base.rb', line 55

def preview to=:developer
  require_relative 'preview'
  Cli::Preview.invoke(email, to, options)
end

#scopeObject



64
65
66
67
# File 'lib/inkcite/cli/base.rb', line 64

def scope
  require_relative 'scope'
  Cli::Scope.invoke(email, options)
end

#serverObject



92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/inkcite/cli/base.rb', line 92

def server
  require_relative 'server'

  Cli::Server.start(email, {
      :environment => environment,
      :format => format,
      :host => options['host'],
      :port => options['port'],
      :version => version
  })

end

#testObject



112
113
114
115
# File 'lib/inkcite/cli/base.rb', line 112

def test
  require_relative 'test'
  Cli::Test.invoke(email, options)
end

#uploadObject



122
123
124
# File 'lib/inkcite/cli/base.rb', line 122

def upload
  options[:force] ? email.upload! : email.upload
end