Class: Deploygate::Api::Cli

Inherits:
Thor
  • Object
show all
Defined in:
lib/deploygate/api/cli.rb

Instance Method Summary collapse

Instance Method Details

#upload(filepath) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/deploygate/api/cli.rb', line 11

def upload(filepath)
  owner_name       = options[:owner_name]
  token            = options[:token]
  message          = options[:message]
  distribution_key = options[:distribution_key]
  release_note     = options[:release_note]
  Push.upload_file(owner_name, token, filepath, message, distribution_key, release_note)
end