Module: Droppper

Defined in:
lib/droppper.rb,
lib/droppper/cli.rb,
lib/droppper/utils.rb,
lib/droppper/config.rb,
lib/droppper/version.rb,
lib/droppper/droplets.rb,
lib/droppper/commands/droplets.rb

Defined Under Namespace

Modules: Commands, Droplets, Utils Classes: CLI, Config

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.clientObject

Returns the value of attribute client.



14
15
16
# File 'lib/droppper.rb', line 14

def client
  @client
end

.configObject

Returns the value of attribute config.



14
15
16
# File 'lib/droppper.rb', line 14

def config
  @config
end

Class Method Details

.setup(options) ⇒ Object



16
17
18
19
20
# File 'lib/droppper.rb', line 16

def setup(options)
  self.config = Droppper::Config.new
  self.config.token = options["token"] if options["token"]
  self.client = DropletKit::Client.new(access_token: config.token)
end