class Suspenders::Production::DeploymentGenerator
Public Instance Methods
copy_script()
click to toggle source
# File lib/suspenders/generators/production/deployment_generator.rb, line 6 def copy_script copy_file "bin_deploy", "bin/deploy" chmod "bin/deploy", 0o755 end
inform_user()
click to toggle source
# File lib/suspenders/generators/production/deployment_generator.rb, line 11 def inform_user instructions = <<~MARKDOWN ## Deploying If you have previously run the `./bin/setup` script, you can deploy to staging and production with: % ./bin/deploy staging % ./bin/deploy -f staging # pushing with force-with-lease, attention! % ./bin/deploy production % ./bin/deploy -f production # pushing with force-with-lease, attention! MARKDOWN append_file "README.md", instructions end