Sha256: baf2a0d55503467caec0eca293f0b1d57923974ff48e54d99037d01f5b77eacd
Contents?: true
Size: 490 Bytes
Versions: 5
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true namespace :figaro_yml do include Capistrano::Ops::FigaroYml::Paths include Capistrano::Ops::FigaroYml::Helpers desc 'Setup figaro `application.yml` file on the server(s)' task setup: [:check] do content = figaro_yml_content on release_roles :all do execute :mkdir, '-pv', File.dirname(figaro_yml_remote_path) upload! StringIO.new(content), figaro_yml_remote_path end end before 'figaro_yml:setup', 'figaro_yml:backup' end
Version data entries
5 entries across 5 versions & 1 rubygems