Sha256: 03b6c99f00be69f2612373691d976fae4f63a70914d9997e4a4c816b23499f3f
Contents?: true
Size: 511 Bytes
Versions: 4
Compression:
Stored size: 511 Bytes
Contents
module Resource class Directory < Base block_attr :owner, :group, :mode, :action, :recursive, :target def initialize target, &block set_base_defaults @target = target self.instance_eval(&block) end def run Execution.block 'Creating directory', @target, 'root' do |b| b.always_run @always_run b.run "mkdir -p #{@target}" b.run "chmod #{unix_mode} #{@target}" b.run "chown #{@owner}:#{@group} #{@target}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
atesta-0.0.4 | lib/resource/directory.rb |
atesta-0.0.3 | lib/resource/directory.rb |
atesta-0.0.2 | lib/resource/directory.rb |
atesta-0.0.1 | lib/resource/directory.rb |