Class: Apiary::CLI

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

Instance Method Summary collapse

Instance Method Details

#fetchObject



14
15
16
17
# File 'lib/apiary/cli.rb', line 14

def fetch
  cmd = Apiary::Command::Fetch.new options
  cmd.execute
end

#previewObject



28
29
30
31
# File 'lib/apiary/cli.rb', line 28

def preview
  cmd = Apiary::Command::Preview.new options
  cmd.execute
end

#publishObject



40
41
42
43
# File 'lib/apiary/cli.rb', line 40

def publish
  cmd = Apiary::Command::Publish.new options
  cmd.execute
end

#versionObject



48
49
50
# File 'lib/apiary/cli.rb', line 48

def version
  puts Apiary::VERSION
end