vagrant-fabric 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,7 @@ module VagrantPlugins
|
|
8
8
|
attr_accessor :remote
|
9
9
|
attr_accessor :remote_install
|
10
10
|
attr_accessor :remote_password
|
11
|
+
attr_accessor :remote_current_dir
|
11
12
|
|
12
13
|
def initialize
|
13
14
|
@fabfile_path = UNSET_VALUE
|
@@ -17,6 +18,7 @@ module VagrantPlugins
|
|
17
18
|
@remote = UNSET_VALUE
|
18
19
|
@remote_install = UNSET_VALUE
|
19
20
|
@remote_password = UNSET_VALUE
|
21
|
+
@remote_current_dir = UNSET_VALUE
|
20
22
|
end
|
21
23
|
|
22
24
|
def finalize!
|
@@ -27,6 +29,7 @@ module VagrantPlugins
|
|
27
29
|
@remote = false if @remote == UNSET_VALUE
|
28
30
|
@remote_install = false if @remote_install == UNSET_VALUE
|
29
31
|
@remote_password = "vagrant" if @remote_password == UNSET_VALUE
|
32
|
+
@remote_current_dir = "." if @remote_current_dir == UNSET_VALUE
|
30
33
|
end
|
31
34
|
|
32
35
|
def execute(command)
|
@@ -16,10 +16,11 @@ module VagrantPlugins
|
|
16
16
|
@machine.communicate.sudo("pip install fabric")
|
17
17
|
@machine.env.ui.info "Finished to install fabric library your VM."
|
18
18
|
end
|
19
|
-
@machine.communicate.execute("#{config.
|
19
|
+
@machine.communicate.execute("cd #{config.remote_current_dir} && " +
|
20
|
+
"#{config.fabric_path} -f #{config.fabfile_path} " +
|
20
21
|
"--user=#{user} --hosts=127.0.0.1 --password=#{config.remote_password} " +
|
21
22
|
"#{config.tasks.join(' ')}")
|
22
|
-
@machine.env.ui.info"Finished to execute tasks of fabric."
|
23
|
+
@machine.env.ui.info "Finished to execute tasks of fabric."
|
23
24
|
end
|
24
25
|
end
|
25
26
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-fabric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
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: 2013-08-
|
12
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -76,12 +76,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
76
|
- - ! '>='
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
|
+
segments:
|
80
|
+
- 0
|
81
|
+
hash: -4340889221089363556
|
79
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
83
|
none: false
|
81
84
|
requirements:
|
82
85
|
- - ! '>='
|
83
86
|
- !ruby/object:Gem::Version
|
84
87
|
version: '0'
|
88
|
+
segments:
|
89
|
+
- 0
|
90
|
+
hash: -4340889221089363556
|
85
91
|
requirements: []
|
86
92
|
rubyforge_project:
|
87
93
|
rubygems_version: 1.8.23
|