vagrant-grunt 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-grunt/command.rb +5 -15
- data/lib/vagrant-grunt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA512:
|
3
|
-
data.tar.gz:
|
4
|
-
metadata.gz:
|
3
|
+
data.tar.gz: c0ffaf0772bd0c1c810cd6c4b4d267d0c3121909fb4ad43e8c243a10173dd7dd589d4f69602d7b481912f47f96eda400cf0b3b19a696dd559a39b0abea4f5de0
|
4
|
+
metadata.gz: b0c55bacd8d807142fbbab83ccc9d03cd1de19356060331bc59ce1c0d882d792ebc2e2aab9d311b2b6f75f13943e1aa3fe4dbdd6b065d2b6e35d4a288d46791a
|
5
5
|
SHA1:
|
6
|
-
data.tar.gz:
|
7
|
-
metadata.gz:
|
6
|
+
data.tar.gz: 30a7bf35489d7a32400187272626fa6c11fed05e
|
7
|
+
metadata.gz: f88c563ff9a402e3dc16e7c374530ea2766f567f
|
@@ -1,28 +1,18 @@
|
|
1
1
|
module VagrantGrunt
|
2
2
|
class GruntCommand < Vagrant.plugin(2, :command)
|
3
|
-
|
4
|
-
#argument :grunt_command, :type => :string, :required => true, :desc => "The grunt command to run on the VM"
|
5
|
-
#class_option :cwd, :type => :string, :default => nil
|
6
|
-
|
3
|
+
|
7
4
|
def execute
|
8
5
|
cmd = ""
|
9
6
|
ARGV.each do |a|
|
10
7
|
cmd << " #{a}"
|
11
8
|
end
|
12
9
|
|
13
|
-
|
14
|
-
|
10
|
+
puts "Executing command #{cmd}"
|
11
|
+
|
12
|
+
exec(cmd)
|
13
|
+
|
15
14
|
0
|
16
15
|
end
|
17
|
-
#def execute
|
18
|
-
# target_vms.each { |vm| execute_on_vm(vm, grunt_command) }
|
19
|
-
#end
|
20
|
-
|
21
|
-
#protected
|
22
16
|
|
23
|
-
# Executes a command on a specific VM.
|
24
|
-
#def execute_on_vm(vm, command)
|
25
|
-
# vm.env.actions.run(:grunt, "grunt.command" => command)
|
26
|
-
#end
|
27
17
|
end
|
28
18
|
end
|