Class: DearS3::Cli::S3

Inherits:
Thor
  • Object
show all
Defined in:
lib/dears3/cli/s3.rb

Instance Method Summary collapse

Instance Method Details

#authObject



24
25
26
27
28
29
30
# File 'lib/dears3/cli/s3.rb', line 24

def auth
  # If credentials file already exists and user doesn't
  # choose to override, do nothing.
  if credentials = authentication_helper.maybe_get_credentials
    authentication_helper.save_credentials! credentials
  end
end

#publishObject



14
15
16
# File 'lib/dears3/cli/s3.rb', line 14

def publish
  client_helper.publish
end

#unpublishObject



19
20
21
# File 'lib/dears3/cli/s3.rb', line 19

def unpublish
  client_helper.unpublish
end

#uploadObject



9
10
11
# File 'lib/dears3/cli/s3.rb', line 9

def upload
  client_helper.upload
end