magicmonkey 3.0.0 → 3.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d62a15ccec8260c8fb74146f164e5c2c11eb6fb0
4
- data.tar.gz: 961b1e9cf089ee7b6ac8039a65259a5a4b662c92
3
+ metadata.gz: bc8a2fe0128c9169ff4ad6b888493de95eaab6ce
4
+ data.tar.gz: 812ac877335b1ac5738416dd5809a705abc2a48b
5
5
  SHA512:
6
- metadata.gz: 1da5ad79b0ae7a1ba7132b689142e1f5d927ffc3286dadd5a2117ccb4a110cd29b62c033af8716b3b6d1f517e078a9bd9b16ebb439dca73e7ef6b0d12e977fbb
7
- data.tar.gz: f41c8009ac15c5ed3933b159444aebc92ae5e6a471d06088d3578481567a9769c576a6f218beaeb54b233d0add7f53f823eb6f3c1529e624c8e123fce28420ae
6
+ metadata.gz: 0e6b5f14192c8d8af155ed2d13f63bfc382ca15756425c044bb5cf3e5be3d451d101cb41eeb9d8609d3fb1fcd6d85db07a1e90a9b3e626b02623372787b7c861
7
+ data.tar.gz: c76e7a5c924156c08d9e374b307a9d93f39859e662a50aff7234583e4dafe2dbbd44b511c76e8d7a8fad382e3a94493850278e01703a47de6dd86e11b1f1d9ef
@@ -11,10 +11,8 @@ class Conf
11
11
  :ruby => 'default',
12
12
  :app_path => '/var/sites/$APP/current',
13
13
  :bundle_exec => true,
14
- :overwrite_file => false,
15
- :editor => 'nano',
16
14
  :enabled => true,
17
- :verbose => false
15
+ :editor => 'nano',
18
16
  }
19
17
 
20
18
  def initialize
@@ -114,7 +114,12 @@ module Magicmonkey
114
114
  # SHOW COMMAND #
115
115
  ################
116
116
  def self.show(args)
117
- applications = help2('show', 'Shows the configurations of selected applications', args)
117
+ applications = help2('show', 'Shows the configurations of selected applications', args) do |opts|
118
+ opts.on('-e', '--enabled', 'Show enabled applications.') do |s|
119
+ @o[:enabled] = s
120
+ end
121
+ end
122
+ applications.select!{|k| Conf[k.to_sym][:enabled]} if @o[:enabled]
118
123
  applications.each do |app|
119
124
  puts app.upcase
120
125
  pp Conf[app]
@@ -1,3 +1,3 @@
1
1
  module Magicmonkey
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magicmonkey
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Enrico Pilotto