Class: Nuker::Commands::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/nuker/commands/base.rb

Direct Known Subclasses

AddProject, Push, RemoveProject

Instance Method Summary collapse

Instance Method Details

#resource(options = {}) ⇒ Object



8
9
10
11
# File 'lib/nuker/commands/base.rb', line 8

def resource(options = {})
  options[:headers] = { :client_version => Nuker::Client::Version::STRING }
  Nuker::RestResource.new(url, options)
end

#urlObject



13
14
15
# File 'lib/nuker/commands/base.rb', line 13

def url
  Nuker::Client::Config.url
end