Class: Ddenv::Goals::ShadowenvDirCreated
Constant Summary
collapse
- PATH =
".shadowenv.d"
Instance Method Summary
collapse
Methods inherited from Ddenv::Goal
#==, #eql?, #hash, #initialize, #props, #with_pre_and_post_goals
Constructor Details
This class inherits a constructor from Ddenv::Goal
Instance Method Details
#achieve ⇒ Object
16
17
18
|
# File 'lib/ddenv/goals/shadowenv_dir_created.rb', line 16
def achieve
FileUtils.mkdir_p(PATH)
end
|
#achieved? ⇒ Boolean
12
13
14
|
# File 'lib/ddenv/goals/shadowenv_dir_created.rb', line 12
def achieved?
Pathname.new(PATH).directory?
end
|
#message ⇒ Object
8
9
10
|
# File 'lib/ddenv/goals/shadowenv_dir_created.rb', line 8
def message
"Creating .shadowenv.d"
end
|