Sha256: e4d8f991b8c3adc03288c323c5405f7d5bf0c6006a67afdcaf2d12f502f9d113
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
class Upstart::Exporter module ExporterHelpers def export_cmd_helper(cmd_name, cmd) helper_script_cont = Templates.helper :cmd => cmd File.open(helper_cmd_conf(cmd_name), 'w') do |f| f.write(helper_script_cont) end end def app_name @options[:prefix] + @options[:app_name] end def app_cmd(cmd_name) "#{app_name}-#{cmd_name}" end def upstart_cmd_conf(cmd_name) File.join(@options[:upstart_dir], "#{app_cmd(cmd_name)}.conf") end def helper_cmd_conf(cmd_name) File.join(@options[:helper_dir], "#{app_cmd(cmd_name)}.sh") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
upstart-exporter-2.0.1 | lib/upstart-exporter/exporter_helpers.rb |