vagrant-grunt 0.0.24 → 0.0.25

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.
@@ -1,19 +1,21 @@
1
+ require_relative "middleware.rb"
2
+
1
3
  module VagrantGrunt
2
4
  class GruntCommand < Vagrant.plugin(2, :command)
3
5
 
4
6
  def execute
5
7
  @env.ui.info @env.root_path()
6
- @env.ui.info @env.cwd
7
8
 
8
9
  cmd = ""
9
10
  ARGV.each do |a|
10
- cmd << " #{a}"
11
+ cmd << "#{a} "
11
12
  end
12
13
 
13
14
  @env.ui.info "Executing command #{cmd}"
14
15
 
15
16
  with_target_vms(nil, :reverse => true) do |machine|
16
- machine.action(cmd)
17
+ @env.ui.info "Running machine detected executing system call"
18
+ machine.action(:Middleware)
17
19
  end
18
20
 
19
21
 
@@ -10,23 +10,24 @@ module VagrantGrunt
10
10
  end
11
11
 
12
12
  def call(env)
13
- if env["vm"].created? && env["vm"].vm.running?
14
- command = "grunt #{env["grunt.command"]}".strip
13
+ @env.ui.info "Running middleware command"
14
+ #if env["vm"].created? && env["vm"].vm.running?
15
+ # command = "grunt #{env["grunt.command"]}".strip
15
16
 
16
- env["vm"].ssh.execute do |ssh|
17
- # env.ui.info I18n.t("vagrant.plugins.apache2.executing", :command => command)
17
+ # env["vm"].ssh.execute do |ssh|
18
+ # # env.ui.info I18n.t("vagrant.plugins.apache2.executing", :command => command)
18
19
 
19
- ssh.exec!("#{command}") do |channel, type, data|
20
- # Print the data directly to STDOUT, not doing any newlines
21
- # or any extra formatting of our own
22
- $stdout.print(data) if type != :exit_status
23
- end
20
+ # ssh.exec!("#{command}") do |channel, type, data|
21
+ # # Print the data directly to STDOUT, not doing any newlines
22
+ # # or any extra formatting of our own
23
+ # $stdout.print(data) if type != :exit_status
24
+ # end
24
25
 
25
- # Puts out an ending newline just to make sure we end on a new
26
- # line.
27
- $stdout.puts
28
- end
29
- end
26
+ # # Puts out an ending newline just to make sure we end on a new
27
+ # # line.
28
+ # $stdout.puts
29
+ # end
30
+ #end
30
31
 
31
32
  @app.call(env)
32
33
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantGrunt
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-grunt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.24
4
+ version: 0.0.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: 677598507059533085
80
+ hash: -2286948015124481713
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements: