Class: Rake::Pipeline::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rake::Pipeline::CLI
- Defined in:
- lib/rake-pipeline/cli.rb
Instance Method Summary collapse
Instance Method Details
#build ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/rake-pipeline/cli.rb', line 12 def build if [:pretend] project.output_files.each do |file| say_status :create, relative_path(file) end else [:clean] ? project.clean : project.cleanup_tmpdir project.invoke end end |
#clean ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/rake-pipeline/cli.rb', line 25 def clean if [:pretend] project.files_to_clean.each do |file| say_status :remove, relative_path(file) end else project.clean end end |