mami 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/mami/cli.rb +9 -0
- data/lib/mami/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71342adc3b7c846c1885a1850733e463a07c2b51
|
4
|
+
data.tar.gz: e5ad3f79b8bcc07bea708a38d5321f80702d6134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3638e479ab618447b8e1db9c441d6d22270b4f27124991350789cb5ce62c38ad94ac8d8c8fe61bca51e407fc24240bd00429988391197f646f94b87932325ac3
|
7
|
+
data.tar.gz: 5508ad953103f8e4f4f7e54d6e3253f55f05df056cc904a95d8add72256651dc1a129d393ff96f4e6687e6b9ff15bac401e2138fff6be2c223458a48b38b57de
|
data/lib/mami/cli.rb
CHANGED
@@ -3,10 +3,19 @@ require 'thor'
|
|
3
3
|
|
4
4
|
module Mami
|
5
5
|
class CLI < Thor
|
6
|
+
default_task :print
|
7
|
+
|
6
8
|
desc "version", "Prints the mami's version information"
|
7
9
|
def version
|
8
10
|
puts "Mami version #{Mami::VERSION}"
|
9
11
|
end
|
10
12
|
map %w(-v --version) => :version
|
13
|
+
|
14
|
+
desc "print", "Prints timestamped text file path"
|
15
|
+
def print
|
16
|
+
path = ENV['MAMI_DIR']
|
17
|
+
return puts "no-mami" unless path
|
18
|
+
puts path + %x[date "+%Y-%m-%d-%H-%M-%S"].chomp + ".txt"
|
19
|
+
end
|
11
20
|
end
|
12
21
|
end
|
data/lib/mami/version.rb
CHANGED