Class: Opsk::Clean
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Opsk::Clean
show all
- Includes:
- Thorable, Thor::Actions
- Defined in:
- lib/opskeleton/clean.rb
Instance Method Summary
collapse
Methods included from Thorable
#artifact, #artifact_path, #check_root, included, #machines, #type_of
Instance Method Details
#cleanup ⇒ Object
18
19
20
|
# File 'lib/opskeleton/clean.rb', line 18
def cleanup
remove_dir('pkg')
end
|
10
11
12
|
# File 'lib/opskeleton/clean.rb', line 10
def meta
OpenStruct.new(YAML.load_file('opsk.yaml'))
end
|
#name ⇒ Object
14
15
16
|
# File 'lib/opskeleton/clean.rb', line 14
def name
File.basename(Dir.getwd)
end
|
#validate ⇒ Object
5
6
7
|
# File 'lib/opskeleton/clean.rb', line 5
def validate
check_root
end
|