Class: QuiverToolbox::CLI::Notebook

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



9
10
11
# File 'lib/quiver_toolbox/cli/notebook.rb', line 9

def api
  @api
end

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/quiver_toolbox/cli/notebook.rb', line 4

def exit_on_failure?
  true
end

Instance Method Details

#create(name) ⇒ Object



14
15
16
17
18
# File 'lib/quiver_toolbox/cli/notebook.rb', line 14

def create(name)
  @api =  QuiverToolbox::API::CreateNotebook.new(name, create_options['uuid'], create_options['path'])
  @api.exec.store
  self
end