Class: Dockerify::Cli
- Inherits:
-
Thor
- Object
- Thor
- Dockerify::Cli
- Defined in:
- lib/dockerify/cli.rb
Instance Method Summary collapse
Instance Method Details
#new(path = '.') ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/dockerify/cli.rb', line 7 def new(path = '.') result = runner.build(path) unless result.compact.empty? puts result puts production_db_instruction end end |
#remove(path = '.') ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/dockerify/cli.rb', line 16 def remove(path = '.') puts "This command will remove the files: Dockerfile, etc." result = yes?("Are you sure?") if result result = runner.remove(path) if result.compact.empty? puts "No Dockerify-related files found." else puts result end else puts "Aborting" end end |