Last active
December 26, 2015 05:39
-
-
Save tkuchiki/7101885 to your computer and use it in GitHub Desktop.
capistrano 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install capistrano --no-ri --no-rdoc | |
# cap install STAGES=local,sandbox,qa,production | |
$ cap install | |
mkdir -p config/deploy | |
create config/deploy.rb | |
create config/deploy/staging.rb | |
create config/deploy/production.rb | |
mkdir -p lib/capistrano/tasks | |
Capified | |
... | |
# あとで書く |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree /usr/lib64/ruby/gems/1.9.1/gems/capistrano-2.15.5/ | |
/usr/lib64/ruby/gems/1.9.1/gems/capistrano-2.15.5/ | |
├── CHANGELOG | |
├── Gemfile | |
├── README.md | |
├── Rakefile | |
├── bin | |
│ ├── cap | |
│ └── capify | |
├── capistrano.gemspec | |
├── lib | |
│ ├── capistrano | |
│ │ ├── callback.rb | |
│ │ ├── cli | |
│ │ │ ├── execute.rb | |
│ │ │ ├── help.rb | |
│ │ │ ├── help.txt | |
│ │ │ ├── options.rb | |
│ │ │ └── ui.rb | |
│ │ ├── cli.rb | |
│ │ ├── command.rb | |
│ │ ├── configuration | |
│ │ │ ├── actions | |
│ │ │ │ ├── file_transfer.rb | |
│ │ │ │ ├── inspect.rb | |
│ │ │ │ └── invocation.rb | |
│ │ │ ├── alias_task.rb | |
│ │ │ ├── callbacks.rb | |
│ │ │ ├── connections.rb | |
│ │ │ ├── execution.rb | |
│ │ │ ├── loading.rb | |
│ │ │ ├── log_formatters.rb | |
│ │ │ ├── namespaces.rb | |
│ │ │ ├── roles.rb | |
│ │ │ ├── servers.rb | |
│ │ │ └── variables.rb | |
│ │ ├── configuration.rb | |
│ │ ├── errors.rb | |
│ │ ├── ext | |
│ │ │ ├── multistage.rb | |
│ │ │ └── string.rb | |
│ │ ├── extensions.rb | |
│ │ ├── fix_rake_deprecated_dsl.rb | |
│ │ ├── logger.rb | |
│ │ ├── processable.rb | |
│ │ ├── recipes | |
│ │ │ ├── compat.rb | |
│ │ │ ├── deploy | |
│ │ │ │ ├── assets.rb | |
│ │ │ │ ├── dependencies.rb | |
│ │ │ │ ├── local_dependency.rb | |
│ │ │ │ ├── remote_dependency.rb | |
│ │ │ │ ├── scm | |
│ │ │ │ │ ├── accurev.rb | |
│ │ │ │ │ ├── base.rb | |
│ │ │ │ │ ├── bzr.rb | |
│ │ │ │ │ ├── cvs.rb | |
│ │ │ │ │ ├── darcs.rb | |
│ │ │ │ │ ├── git.rb | |
│ │ │ │ │ ├── mercurial.rb | |
│ │ │ │ │ ├── none.rb | |
│ │ │ │ │ ├── perforce.rb | |
│ │ │ │ │ └── subversion.rb | |
│ │ │ │ ├── scm.rb | |
│ │ │ │ ├── strategy | |
│ │ │ │ │ ├── base.rb | |
│ │ │ │ │ ├── checkout.rb | |
│ │ │ │ │ ├── copy.rb | |
│ │ │ │ │ ├── export.rb | |
│ │ │ │ │ ├── remote.rb | |
│ │ │ │ │ ├── remote_cache.rb | |
│ │ │ │ │ └── unshared_remote_cache.rb | |
│ │ │ │ └── strategy.rb | |
│ │ │ ├── deploy.rb | |
│ │ │ ├── standard.rb | |
│ │ │ └── templates | |
│ │ │ └── maintenance.rhtml | |
│ │ ├── role.rb | |
│ │ ├── server_definition.rb | |
│ │ ├── shell.rb | |
│ │ ├── ssh.rb | |
│ │ ├── task_definition.rb | |
│ │ ├── transfer.rb | |
│ │ └── version.rb | |
│ └── capistrano.rb | |
└── test | |
├── cli | |
│ ├── execute_test.rb | |
│ ├── help_test.rb | |
│ ├── options_test.rb | |
│ └── ui_test.rb | |
├── cli_test.rb | |
├── command_test.rb | |
├── configuration | |
│ ├── actions | |
│ │ ├── file_transfer_test.rb | |
│ │ ├── inspect_test.rb | |
│ │ └── invocation_test.rb | |
│ ├── alias_task_test.rb | |
│ ├── callbacks_test.rb | |
│ ├── connections_test.rb | |
│ ├── execution_test.rb | |
│ ├── loading_test.rb | |
│ ├── namespace_dsl_test.rb | |
│ ├── roles_test.rb | |
│ ├── servers_test.rb | |
│ └── variables_test.rb | |
├── configuration_test.rb | |
├── deploy | |
│ ├── local_dependency_test.rb | |
│ ├── remote_dependency_test.rb | |
│ ├── scm | |
│ │ ├── accurev_test.rb | |
│ │ ├── base_test.rb | |
│ │ ├── bzr_test.rb | |
│ │ ├── darcs_test.rb | |
│ │ ├── git_test.rb | |
│ │ ├── mercurial_test.rb | |
│ │ ├── none_test.rb | |
│ │ ├── perforce_test.rb | |
│ │ └── subversion_test.rb | |
│ └── strategy | |
│ └── copy_test.rb | |
├── extensions_test.rb | |
├── fixtures | |
│ ├── cli_integration.rb | |
│ ├── config.rb | |
│ └── custom.rb | |
├── logger_formatting_test.rb | |
├── logger_test.rb | |
├── recipes_test.rb | |
├── role_test.rb | |
├── server_definition_test.rb | |
├── shell_test.rb | |
├── ssh_test.rb | |
├── task_definition_test.rb | |
├── transfer_test.rb | |
└── utils.rb | |
20 directories, 116 files |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ tree /usr/lib/ruby/gems/1.8/gems/capistrano-3.0.0/ | |
/usr/lib/ruby/gems/1.8/gems/capistrano-3.0.0/ | |
├── bin | |
│ ├── cap | |
│ └── capify | |
├── capistrano.gemspec | |
├── capistrano-public_cert.pem | |
├── CHANGELOG.md | |
├── features | |
│ ├── deploy.feature | |
│ ├── installation.feature | |
│ ├── remote_file_task.feature | |
│ ├── step_definitions | |
│ │ ├── assertions.rb | |
│ │ ├── cap_commands.rb | |
│ │ └── setup.rb | |
│ └── support | |
│ ├── env.rb | |
│ └── remote_command_helpers.rb | |
├── Gemfile | |
├── lib | |
│ ├── Capfile | |
│ ├── capistrano | |
│ │ ├── all.rb | |
│ │ ├── application.rb | |
│ │ ├── configuration | |
│ │ │ ├── question.rb | |
│ │ │ ├── server.rb | |
│ │ │ ├── servers | |
│ │ │ │ └── role_filter.rb | |
│ │ │ └── servers.rb | |
│ │ ├── configuration.rb | |
│ │ ├── console.rb | |
│ │ ├── defaults.rb | |
│ │ ├── deploy.rb | |
│ │ ├── dotfile.rb | |
│ │ ├── dsl | |
│ │ │ ├── env.rb | |
│ │ │ ├── paths.rb | |
│ │ │ ├── stages.rb | |
│ │ │ └── task_enhancements.rb | |
│ │ ├── dsl.rb | |
│ │ ├── git.rb | |
│ │ ├── hg.rb | |
│ │ ├── i18n.rb | |
│ │ ├── install.rb | |
│ │ ├── setup.rb | |
│ │ ├── tasks | |
│ │ │ ├── console.rake | |
│ │ │ ├── deploy.rake | |
│ │ │ ├── framework.rake | |
│ │ │ ├── git.rake | |
│ │ │ ├── hg.rake | |
│ │ │ └── install.rake | |
│ │ ├── templates | |
│ │ │ ├── Capfile | |
│ │ │ ├── deploy.rb.erb | |
│ │ │ └── stage.rb.erb | |
│ │ ├── version.rb | |
│ │ └── version_validator.rb | |
│ └── capistrano.rb | |
├── LICENSE.txt | |
├── Rakefile | |
├── README.md | |
└── spec | |
├── integration | |
│ └── dsl_spec.rb | |
├── integration_spec_helper.rb | |
├── lib | |
│ ├── capistrano | |
│ │ ├── application_spec.rb | |
│ │ ├── configuration | |
│ │ │ ├── question_spec.rb | |
│ │ │ ├── servers | |
│ │ │ │ └── role_filter_spec.rb | |
│ │ │ ├── server_spec.rb | |
│ │ │ └── servers_spec.rb | |
│ │ ├── configuration_spec.rb | |
│ │ ├── dsl | |
│ │ │ ├── env_spec.rb | |
│ │ │ └── paths_spec.rb | |
│ │ ├── dsl_spec.rb | |
│ │ └── version_validator_spec.rb | |
│ └── capistrano_spec.rb | |
├── spec_helper.rb | |
└── support | |
├── matchers.rb | |
├── tasks | |
│ └── database.cap | |
├── test_app.rb | |
└── Vagrantfile | |
20 directories, 69 files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment