miser 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bcd4ccefed40a48bb0f28269adff01670a26f35
4
- data.tar.gz: 62075cea2316c6d45f5ba7840f20527ac94589f4
3
+ metadata.gz: fda99a48c4969ba886c0b2dc435f164569a0c151
4
+ data.tar.gz: 31779ecc137d6af397f5d34f296462e037d9180a
5
5
  SHA512:
6
- metadata.gz: 87a1a33204a5e54534cb0a156097e0f96491c61255f236192ee89f04c46c9bbf763933c610831aeb1c0abb01a977bbcee2ba08bd7f0fa488faae7254ef17cdae
7
- data.tar.gz: b4adc845911da84b6f5694e4f11bb49db29a240dcf3f08ca568ac11e259adb4fd8659c2ba854ba25d84c8d0714b9b07fb5ddb504658a492a5b917c49e07c6c4b
6
+ metadata.gz: de00777bf3c7d21771480fc18fcb1bb265f4638ee3851d121b61d3b0da6e93c5e8365d9ebc57ea56d5df1ebd850bff9e6060cf403517770247cf9b5f00d4ca97
7
+ data.tar.gz: 1f2fda6c86f8e025bac80dc4eaaa5e8487262dfc7e04db871f754b654b3c481ca2e851e368e656df3841f06f3393b075407948c5696d4dd92b1def60d48db73f
@@ -34,6 +34,16 @@ module Miser
34
34
  mail.deliver(report)
35
35
  end
36
36
 
37
+ desc 'interactive', 'run interactive mode'
38
+ option :echo, type: :boolean, desc: 'no echo mode', default: false
39
+ def interactive
40
+ puts "Please enter what to run and press enter:"
41
+ mode = options[:echo] ? :cooked : :noecho
42
+ command = STDIN.send(mode, &:gets).strip
43
+ cmd = "#{Process.argv0} #{command}"
44
+ exec cmd
45
+ end
46
+
37
47
  desc 'schedule TIME *ARGS', 'schedule check every TIME'
38
48
  def schedule(time, *args)
39
49
  hour, minute = time.split(':')
@@ -1,3 +1,3 @@
1
1
  module Miser
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Cichra