class WeighflowCli::Cli

Public Class Methods

exit_on_failure?() click to toggle source
# File lib/weighflow_cli/cli.rb, line 16
def self.exit_on_failure?
  false
end

Public Instance Methods

data_path() click to toggle source
# File lib/weighflow_cli/cli.rb, line 27
def data_path
  puts WeighflowCli.data_path
end
find_order(external_id) click to toggle source
# File lib/weighflow_cli/cli.rb, line 56
def find_order(external_id)             
  if index = WeighflowCli.find_order(external_id) 
    options_renderer(index.data, options)
  else
    options_renderer(nil, options)  
  end      
end
indexes() click to toggle source
# File lib/weighflow_cli/cli.rb, line 50
def indexes
  options_renderer(WeighflowCli.list(indexes_only: true), options) 
end
list() click to toggle source
# File lib/weighflow_cli/cli.rb, line 45
def list
  options_renderer(WeighflowCli.list, options) 
end
login() click to toggle source
# File lib/weighflow_cli/cli.rb, line 33
def login
  Credentials.login      
end
pull() click to toggle source
# File lib/weighflow_cli/cli.rb, line 39
def pull 
  options_renderer(WeighflowCli.pull, options)
end
status() click to toggle source
# File lib/weighflow_cli/cli.rb, line 21
def status 
  options_renderer(WeighflowCli.client.status, options)
end