class DearS3::Cli::S3

Public Instance Methods

auth() click to toggle source
# 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
publish() click to toggle source
# File lib/dears3/cli/s3.rb, line 14
def publish
  client_helper.publish
end
unpublish() click to toggle source
# File lib/dears3/cli/s3.rb, line 19
def unpublish
  client_helper.unpublish
end
upload() click to toggle source
# File lib/dears3/cli/s3.rb, line 9
def upload
  client_helper.upload
end

Private Instance Methods

authentication() click to toggle source
# File lib/dears3/cli/s3.rb, line 50
def authentication
  @authentication ||= DearS3::Authentication.instance
end
authentication_helper() click to toggle source
# File lib/dears3/cli/s3.rb, line 46
def authentication_helper
  @auhentication_helper ||= DearS3::Cli::AuthenticationHelper.new authentication
end
client_helper() click to toggle source
# File lib/dears3/cli/s3.rb, line 34
def client_helper
  @client_helper ||= ClientHelper.new s3_client
end
s3_client() click to toggle source
# File lib/dears3/cli/s3.rb, line 38
def s3_client
  @s3_client ||= DearS3::Client.instance.with s3_connection
end
s3_connection() click to toggle source
# File lib/dears3/cli/s3.rb, line 42
def s3_connection
  authentication.connect
end