ruby-llenv 0.0.6 → 0.0.7
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.
- data/Changelog.md +5 -0
- data/README.md +2 -2
- data/lib/llenv/cli.rb +8 -2
- data/lib/llenv/declare.rb +4 -9
- data/lib/llenv/version.rb +1 -1
- metadata +2 -2
data/Changelog.md
CHANGED
data/README.md
CHANGED
@@ -18,13 +18,13 @@ Or install it yourself as:
|
|
18
18
|
|
19
19
|
## Usage
|
20
20
|
|
21
|
-
Install ruby-1.9.3-p327 to ~/.llenv/ruby-1.9.3-p327/, and also `bundle install` required modules to your-project/vendor/bundle. See [install
|
21
|
+
Install ruby-1.9.3-p327 to ~/.llenv/ruby-1.9.3-p327/, and also `bundle install` required modules to your-project/vendor/bundle. See [install script](https://github.com/riywo/llenv-declare/blob/master/.lib/ruby/install).
|
22
22
|
|
23
23
|
$ cd your-project
|
24
24
|
$ echo ruby-1.9.3-p327 > .llenv
|
25
25
|
$ llenv install
|
26
26
|
|
27
|
-
Execute any command. See [exec
|
27
|
+
Execute any command. See [exec script](https://github.com/riywo/llenv-declare/blob/master/.lib/ruby/exec).
|
28
28
|
|
29
29
|
$ cd your-project
|
30
30
|
$ llenv exec ruby -v
|
data/lib/llenv/cli.rb
CHANGED
@@ -26,13 +26,19 @@ class LLenv::CLI < Thor
|
|
26
26
|
desc "install", "Install specific LLenv"
|
27
27
|
def install
|
28
28
|
check_root_dir!
|
29
|
-
@declare.
|
29
|
+
@declare.run(llenv, "install")
|
30
30
|
end
|
31
31
|
|
32
32
|
desc "exec", "Execute command with specific LLenv"
|
33
33
|
def exec(*argv)
|
34
34
|
check_root_dir!
|
35
|
-
@declare.
|
35
|
+
@declare.run(llenv, "exec", argv)
|
36
|
+
end
|
37
|
+
|
38
|
+
desc "vendorpath", "Return vendor module install path"
|
39
|
+
def vendorpath
|
40
|
+
check_root_dir!
|
41
|
+
@declare.run(llenv, "vendorpath")
|
36
42
|
end
|
37
43
|
|
38
44
|
desc "version", "Display LLenv gem version"
|
data/lib/llenv/declare.rb
CHANGED
@@ -5,16 +5,11 @@ class LLenv::Declare
|
|
5
5
|
@root_dir = dir
|
6
6
|
end
|
7
7
|
|
8
|
-
def
|
8
|
+
def run(llenv, command, argv = [])
|
9
9
|
set_env(llenv)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
def execute(llenv, argv)
|
15
|
-
set_env(llenv)
|
16
|
-
exec_script = File.join(@declare_dir, "exec")
|
17
|
-
exec(exec_script, *argv)
|
10
|
+
script = File.join(@declare_dir, "run")
|
11
|
+
argv.unshift(command)
|
12
|
+
exec(script, *argv)
|
18
13
|
end
|
19
14
|
|
20
15
|
def list
|
data/lib/llenv/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-llenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|