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 +4 -4
- data/lib/faststrap.rb +12 -6
- data/lib/faststrap/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: 80b8496ca08b48c23af13e55d5c63c29c4284ff9
|
4
|
+
data.tar.gz: 24c8e45ab618391ea619fb51fa4761e8192fdc36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ba1b7aab3d32d90e4b43f18842f718338d269d0ebaa892ed1e91d942b3ee656f7e84aca82dd56b709c9abe4cdbb8945a55d0eebc9c307147f6c71ec08c00f78
|
7
|
+
data.tar.gz: 494e7f5cbb24c3f7fd8a7d3bc11d156463c5b8cdcb38cb3ba98d40ef2786deaa75eba70fa16ea70c5b3873e2163826142d2cc69228765403e6a5860eed7f7ca7
|
data/lib/faststrap.rb
CHANGED
@@ -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
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
data/lib/faststrap/version.rb
CHANGED