Class: Dpl::Providers::Pages::Git
- Inherits:
-
Dpl::Providers::Pages
- Object
- Cl::Cmd
- Dpl::Provider
- Dpl::Providers::Pages
- Dpl::Providers::Pages::Git
- Defined in:
- lib/dpl/providers/pages/git.rb
Constant Summary
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, #compact, #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
98 99 100 101 102 103 104 105 106 107 |
# File 'lib/dpl/providers/pages/git.rb', line 98 def deploy git_clone? ? git_clone : git_init copy_files return info :stop if git_clone? && !git_dirty? git_config git_commit git_push git_status if verbose? end |
#login ⇒ Object
81 82 83 |
# File 'lib/dpl/providers/pages/git.rb', line 81 def login token? ? login_token : setup_deploy_key end |
#prepare ⇒ Object
91 92 93 94 95 96 |
# File 'lib/dpl/providers/pages/git.rb', line 91 def prepare info :deploy info :keep_history if keep_history? debug :work_dir Dir.chdir(work_dir) end |
#setup ⇒ Object
85 86 87 88 89 |
# File 'lib/dpl/providers/pages/git.rb', line 85 def setup info :setup_dir, src_dir info :committer_from_gh if committer_from_gh? info :git_config end |