Class: Mami::CLI
- Inherits:
-
Thor
- Object
- Thor
- Mami::CLI
- Defined in:
- lib/mami/cli.rb
Instance Method Summary collapse
Instance Method Details
#print ⇒ Object
16 17 18 19 20 21 |
# File 'lib/mami/cli.rb', line 16 def print path = ENV['MAMI_DIR'] return puts "no-mami" unless path extension = [:extension].nil? ? nil : '.' + [:extension] puts [path, "/", %x[date "+%Y-%m-%d-%H-%M-%S"].chomp, extension].compact.join end |