class Weneedfeed::Command

Public Class Methods

exit_on_failure?() click to toggle source

@note Override for thor breaking change.

See https://github.com/erikhuda/thor/issues/244.
# File lib/weneedfeed/command.rb, line 12
def exit_on_failure?
  true
end

Public Instance Methods

build() click to toggle source

@param [String] base_url @param [String] schema_path

# File lib/weneedfeed/command.rb, line 38
def build
  ::Weneedfeed::Capture.call(
    base_url: options[:base_url],
    schema_path: options[:schema_path]
  )
end
server() click to toggle source
# File lib/weneedfeed/command.rb, line 57
def server
  schema = ::YAML.load_file(options[:schema_path])
  application = Weneedfeed::Application.new(schema: schema)
  ::Rack::Handler.default.run(application)
end