Class: Suspenders::Production::DeploymentGenerator
- Inherits:
-
Generators::Base
- Object
- Rails::Generators::Base
- Generators::Base
- Suspenders::Production::DeploymentGenerator
show all
- Defined in:
- lib/suspenders/generators/production/deployment_generator.rb
Instance Method Summary
collapse
default_source_root
Methods included from Actions
#action_mailer_asset_host, #action_mailer_host, #configure_environment, #expand_json, #replace_in_file
Instance Method Details
#copy_script ⇒ Object
6
7
8
9
|
# File 'lib/suspenders/generators/production/deployment_generator.rb', line 6
def copy_script
copy_file "bin_deploy", "bin/deploy"
chmod "bin/deploy", 0o755
end
|
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# File 'lib/suspenders/generators/production/deployment_generator.rb', line 11
def inform_user
instructions = "\n ## Deploying\n\n If you have previously run the `./bin/setup` script,\n you can deploy to staging and production with:\n\n % ./bin/deploy staging\n % ./bin/deploy -f staging # pushing with force-with-lease, attention!\n % ./bin/deploy production\n % ./bin/deploy -f production # pushing with force-with-lease, attention!\n MARKDOWN\n\n append_file \"README.md\", instructions\nend\n"
|