Class: Dpl::Providers::S3
- Inherits:
-
Dpl::Provider
- Object
- Cl::Cmd
- Dpl::Provider
- Dpl::Providers::S3
- Defined in:
- lib/dpl/providers/s3.rb
Defined Under Namespace
Classes: Mapping
Constant Summary collapse
- DEFAULT_CONTENT_TYPE =
'application/octet-stream'
Constants inherited from Dpl::Provider
Dpl::Provider::FOLDS, Dpl::Provider::STAGES
Instance Attribute Summary
Attributes inherited from Dpl::Provider
Instance Method Summary collapse
Methods inherited from Dpl::Provider
#before_finish, #before_init, #before_install, #before_prepare, #before_setup, #chmod, #cleanup, #cmd, #err, #error, #escape, examples, #expand, #file?, #finish?, #fold, #fold?, #info, #initialize, install_deps, install_deps?, #mkdir_p, move_files, #msg, #mv, #only, #open, #opt_for, #opt_key, #opts_for, #print, #quote, #read, #remove_dpl_dir, #rm_rf, #run, #run_cmd, #run_cmds, #run_stage, #run_stage?, #script, #setup_dpl_dir, #setup_git_config, #setup_git_http_user_agent, #setup_git_ssh, #setup_ssh_key, #shell, #sq, #ssh_keygen, #symbolize, #try_ssh_access, #uncleanup, unmove_files, validate_runtimes, #wait_for_ssh_access, #warn
Methods included from Dpl::Provider::Dsl
#apt, #apt?, #cmds, #description, #env, #errs, #full_name, #gem, #gem?, #keep, #move, #msgs, #needs, #needs?, #node_js, #npm, #npm?, #opt, #path, #pip, #pip?, #python, #ruby_pre?, #ruby_version, #runtimes, #status, #strs, #summary, #user_agent, #vars
Methods included from Squiggle
Methods included from Assets
Methods included from Env
Methods included from ConfigFile
Methods included from Interpolate
#interpolate, #obfuscate, #vars
Methods included from Memoize
Constructor Details
This class inherits a constructor from Dpl::Provider
Instance Method Details
#deploy ⇒ Object
73 74 75 76 77 78 |
# File 'lib/dpl/providers/s3.rb', line 73 def deploy upload index_document_suffix if index_document_suffix? rescue Aws::S3::Errors::ServiceError => e handle_error(e) end |
#finish ⇒ Object
80 81 82 |
# File 'lib/dpl/providers/s3.rb', line 80 def finish Dir.chdir(@cwd) if @cwd end |
#login ⇒ Object
69 70 71 |
# File 'lib/dpl/providers/s3.rb', line 69 def login info :login end |
#setup ⇒ Object
63 64 65 66 67 |
# File 'lib/dpl/providers/s3.rb', line 63 def setup @cwd = Dir.pwd Dir.chdir(local_dir) # Aws.eager_autoload!(services: ['S3']) end |