fvm 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.md +5 -0
- data/lib/fvm/cli/driver.rb +26 -6
- data/lib/fvm/cli/thor.rb +6 -3
- data/lib/fvm/version.rb +1 -1
- metadata +4 -3
data/lib/fvm/cli/driver.rb
CHANGED
@@ -116,22 +116,42 @@ module Fvm
|
|
116
116
|
end
|
117
117
|
=begin rdoc
|
118
118
|
Prints the active Flex SDK version number
|
119
|
+
|
120
|
+
OPTIONS
|
121
|
+
|
122
|
+
-c, --chomp `print` instead of `puts`
|
119
123
|
=end
|
120
|
-
def which
|
121
|
-
|
124
|
+
def which( options )
|
125
|
+
if Fvm::System.active_version?
|
126
|
+
options.chomp? ? print( Fvm::System.active_version.version ) : puts( Fvm::System.active_version.version )
|
127
|
+
else
|
128
|
+
print ''
|
129
|
+
end
|
122
130
|
end
|
123
131
|
=begin rdoc
|
124
132
|
Prints the active Flex SDK home directory
|
133
|
+
|
134
|
+
OPTIONS
|
135
|
+
|
136
|
+
-c, --chomp `print` instead of `puts`
|
125
137
|
=end
|
126
|
-
def home
|
138
|
+
def home( options )
|
127
139
|
installations = installer.installations.select( &:active? )
|
128
|
-
|
140
|
+
if installations.any?
|
141
|
+
options.chomp? ? print( installations.first.dir ) : puts( installations.first.dir )
|
142
|
+
else
|
143
|
+
print ''
|
144
|
+
end
|
129
145
|
end
|
130
146
|
=begin rdoc
|
131
147
|
Prints the location of the fvm-restart script
|
148
|
+
|
149
|
+
OPTIONS
|
150
|
+
|
151
|
+
-c, --chomp `print` instead of `puts`
|
132
152
|
=end
|
133
|
-
def restart
|
134
|
-
puts restart_script_path
|
153
|
+
def restart( options )
|
154
|
+
options.chomp? ? print( restart_script_path ) : puts( restart_script_path )
|
135
155
|
end
|
136
156
|
|
137
157
|
protected
|
data/lib/fvm/cli/thor.rb
CHANGED
@@ -37,22 +37,25 @@ module Fvm
|
|
37
37
|
See Fvm::CLI::Driver#which
|
38
38
|
=end
|
39
39
|
desc 'which', 'Prints the currently-linked Flex SDK version, if any'
|
40
|
+
method_options %w| chomp -c | => :boolean
|
40
41
|
def which
|
41
|
-
driver.which
|
42
|
+
driver.which options
|
42
43
|
end
|
43
44
|
=begin rdoc
|
44
45
|
See Fvm::CLI::Driver#home
|
45
46
|
=end
|
46
47
|
desc 'home', 'Prints the current home of the Flex SDK, if any'
|
48
|
+
method_options %w| chomp -c | => :boolean
|
47
49
|
def home
|
48
|
-
driver.home
|
50
|
+
driver.home options
|
49
51
|
end
|
50
52
|
=begin rdoc
|
51
53
|
See Fvm::CLI::Driver#restart
|
52
54
|
=end
|
53
55
|
desc 'restart', 'Prints the location of the fvm-restart script'
|
56
|
+
method_options %w| chomp -c | => :boolean
|
54
57
|
def restart
|
55
|
-
driver.restart
|
58
|
+
driver.restart options
|
56
59
|
end
|
57
60
|
|
58
61
|
protected
|
data/lib/fvm/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 7
|
10
|
+
version: 0.1.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Ruppel
|
@@ -125,6 +125,7 @@ extra_rdoc_files: []
|
|
125
125
|
files:
|
126
126
|
- .gitignore
|
127
127
|
- Gemfile
|
128
|
+
- History.md
|
128
129
|
- README.md
|
129
130
|
- Rakefile
|
130
131
|
- bin/fvm
|