Class: Apiary::CLI

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

Instance Method Summary collapse

Instance Method Details

#archiveObject



17
18
19
20
# File 'lib/apiary/cli.rb', line 17

def archive
  cmd = Apiary::Command::Archive.new options
  cmd.execute
end

#fetchObject



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

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

#previewObject



43
44
45
46
# File 'lib/apiary/cli.rb', line 43

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

#publishObject



56
57
58
59
# File 'lib/apiary/cli.rb', line 56

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

#styleguideObject



69
70
71
72
# File 'lib/apiary/cli.rb', line 69

def styleguide
  cmd = Apiary::Command::Styleguide.new options
  cmd.execute
end

#versionObject



77
78
79
# File 'lib/apiary/cli.rb', line 77

def version
  puts Apiary::VERSION
end