Class: Deployme::Notifications::Envfile
Class Method Summary
collapse
Instance Method Summary
collapse
all, defaults, #initialize
Class Method Details
.options(parser) ⇒ Object
4
5
6
|
# File 'lib/deployme/notifications/envfile.rb', line 4
def self.options(parser)
parser.on('--envfile-path=NAME', String, 'Environment File to Write out') { |options, value| options.envfile_path = value }
end
|
Instance Method Details
#notify_error(error = nil) ⇒ Object
10
|
# File 'lib/deployme/notifications/envfile.rb', line 10
def notify_error(error = nil); end
|
#notify_finish ⇒ Object
12
13
14
15
16
|
# File 'lib/deployme/notifications/envfile.rb', line 12
def notify_finish
File.open(settings.path, 'w') do |f|
f.puts "DEPLOYMENT_URL=#{deployment.options.deploy_url}"
end
end
|
#notify_start ⇒ Object
8
|
# File 'lib/deployme/notifications/envfile.rb', line 8
def notify_start; end
|