Class: Pointer::EasyDeploy
- Inherits:
-
Object
- Object
- Pointer::EasyDeploy
- Includes:
- BitBucket, DeployerApplication, Helpers, Mina, NginxPassenger, Postgres, RailsUser, Rvm, SshHelpers, Variables
- Defined in:
- lib/pointer.rb
Instance Method Summary collapse
Methods included from Rvm
Methods included from RailsUser
#add_sudo, #create_rails_user, #delete_rails_user, #print_deploy_key, #revoke_sudo, #upload_public_key
Methods included from NginxPassenger
#create_site_config, #install_passenger
Methods included from Mina
#check_mina_prereqs, #mina_deploy, #mina_init, #user_has_mina_config
Methods included from DeployerApplication
Methods included from BitBucket
Methods included from SshHelpers
#ensure_file_contains, #ensure_file_not_contains, #expect_empty, #file_absent, #file_exists, #get_file_contents, #put_file_contents, #test_connection, #with_root_ssh, #with_ssh
Methods included from Variables
#bitbucket, #deployer_application, #host, #mina, #nginx, #password, #port, #postgres, #private_key, #public_key, #rails_user, #ruby_version, #site_port, #user
Methods included from Helpers
#assert_git, #remote_repo, #what
Methods included from Postgres
Instance Method Details
#run!(options) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/pointer.rb', line 21 def run!() @options = assert_git() check_mina_prereqs() with_root_ssh do # delete_rails_user() create_rails_user() upload_public_key() add_sudo() end with_ssh do test_connection() install_rvm() if nginx install_passenger() create_site_config() end if mina mina_init() end if postgres @db_config = install_postgres() end print_deploy_key() if bitbucket add_bit_bucket_host() end if mina mina_deploy() end if deployer_application install_deployer() end revoke_sudo() end end |