lib/poolparty/resources/exec.rb in auser-poolparty-1.2.2 vs lib/poolparty/resources/exec.rb in auser-poolparty-1.2.3
- old
+ new
@@ -23,10 +23,11 @@
has_exec(:name => 'start messenger', :command => 'server-start-node', :requires => get_gempackage('poolparty-latest', :onlyif => 'ps aux | grep beam | grep master')
=end
class Exec < Resource
+ dsl_methods :cwd, :creates, :command
default_options({
:path => ["/usr/bin:/bin:/usr/local/bin:$PATH"]
})
def present
@@ -36,10 +37,10 @@
def absent
nil
end
def after_create
- options[:name] = options[:command] unless options.name
+ dsl_options[:name] = dsl_options[:command] unless dsl_options[:name]
end
end
end
\ No newline at end of file