faststrap 0.0.5 → 0.0.6

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: bcd613f4add72b44fe37ec4091549e52ed712182
4
- data.tar.gz: e708f0c0a8293c253690ee9b9bc701283781ec60
3
+ metadata.gz: 80b8496ca08b48c23af13e55d5c63c29c4284ff9
4
+ data.tar.gz: 24c8e45ab618391ea619fb51fa4761e8192fdc36
5
5
  SHA512:
6
- metadata.gz: f9ec7ae8f9cf3f2a2b57e18b27f8817630ad1a875e45c7e51f30d12918259c7a20318994f8e97ccd7620d0607097c3b46a8a8bd4da83eed45a964330b88883f6
7
- data.tar.gz: c628509267f52227dc9f59725f2e829f6353de1a64544c065f5ba83c7457f0b2b5208da9d4b617bd2401dcc8b9a2d53991f75024407fb95f246b83f32794d5cb
6
+ metadata.gz: 2ba1b7aab3d32d90e4b43f18842f718338d269d0ebaa892ed1e91d942b3ee656f7e84aca82dd56b709c9abe4cdbb8945a55d0eebc9c307147f6c71ec08c00f78
7
+ data.tar.gz: 494e7f5cbb24c3f7fd8a7d3bc11d156463c5b8cdcb38cb3ba98d40ef2786deaa75eba70fa16ea70c5b3873e2163826142d2cc69228765403e6a5860eed7f7ca7
@@ -26,6 +26,7 @@ module Faststrap
26
26
  include Thor::Actions
27
27
 
28
28
  desc 'ios', 'bootstrap your computer for ios env'
29
+ method_option :all,:aliases => "-a", :type => :boolean, :default => false
29
30
  def ios
30
31
  puts "We have the follow actions for ios :"
31
32
 
@@ -36,12 +37,17 @@ module Faststrap
36
37
  Faststrap::InstallActions.present
37
38
  puts "* - Everything"
38
39
 
39
- answer = ask("What do you want to install for ios environment ?",
40
- :limited_to => Faststrap.possible_responses(install_actions_count))
41
-
42
- answer = (answer.to_i) -1 unless answer == '*'
43
-
44
- Faststrap.handle_answer(answer,install_actions)
40
+ everything = options[:all]
41
+
42
+ if everything
43
+ puts "Installing everything .."
44
+ Faststrap.handle_answer('*',install_actions)
45
+ else
46
+ answer = ask("What do you want to install for ios environment ?",
47
+ :limited_to => Faststrap.possible_responses(install_actions_count))
48
+ answer = (answer.to_i) -1 unless answer == '*'
49
+ Faststrap.handle_answer(answer,install_actions)
50
+ end
45
51
 
46
52
  end
47
53
  end
@@ -1,3 +1,3 @@
1
1
  module Faststrap
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faststrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thiago Lioy