Class: Deployme::Notifications::Envfile

Inherits:
Deployme::Notification show all
Defined in:
lib/deployme/notifications/envfile.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Deployme::Notification

all, defaults, #initialize

Constructor Details

This class inherits a constructor from Deployme::Notification

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_finishObject



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_startObject



8
# File 'lib/deployme/notifications/envfile.rb', line 8

def notify_start; end