jamie-vagrant 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -1,3 +1,9 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.9.3
4
+ notifications:
5
+ irc:
6
+ channels:
7
+ - "irc.freenode.org#jamie-ci"
8
+ use_notice: true
9
+ skip_join: true
data/Rakefile CHANGED
@@ -11,4 +11,10 @@ end
11
11
 
12
12
  Tailor::RakeTask.new
13
13
 
14
- task :default => [ :cane, :tailor ]
14
+ desc "Display LOC stats"
15
+ task :stats do
16
+ puts "\n## Production Code Stats"
17
+ sh "countloc -r lib/jamie"
18
+ end
19
+
20
+ task :default => [ :cane, :tailor, :stats ]
@@ -22,4 +22,5 @@ Gem::Specification.new do |gem|
22
22
 
23
23
  gem.add_development_dependency 'cane'
24
24
  gem.add_development_dependency 'tailor'
25
+ gem.add_development_dependency 'countloc'
25
26
  end
@@ -23,11 +23,18 @@ module Jamie
23
23
  module Driver
24
24
 
25
25
  # Vagrant driver for Jamie. It communicates to Vagrant via the CLI.
26
+ #
27
+ # @author Fletcher Nichol <fnichol@nichol.ca>
26
28
  class Vagrant < Jamie::Driver::SSHBase
27
29
 
28
30
  default_config 'memory', '256'
29
31
 
30
32
  def create(instance, state)
33
+ # @todo Vagrantfile setup will be placed in any dependency hook
34
+ # checks when feature is released
35
+ vagrantfile = File.join(config['jamie_root'], "Vagrantfile")
36
+ create_vagrantfile(vagrantfile) unless File.exists?(vagrantfile)
37
+
31
38
  state['hostname'] = instance.name
32
39
  run_command "vagrant up #{state['hostname']} --no-provision"
33
40
  end
@@ -45,12 +52,6 @@ module Jamie
45
52
 
46
53
  protected
47
54
 
48
- def load_state(instance)
49
- vagrantfile = File.join(config['jamie_root'], "Vagrantfile")
50
- create_vagrantfile(vagrantfile) unless File.exists?(vagrantfile)
51
- super
52
- end
53
-
54
55
  def ssh(ssh_args, cmd)
55
56
  run_command %{vagrant ssh #{ssh_args.first} --command '#{cmd}'}
56
57
  end
@@ -21,6 +21,6 @@ module Jamie
21
21
  module Driver
22
22
 
23
23
  # Version string for Vagrant Jamie driver
24
- VAGRANT_VERSION = "0.2.1"
24
+ VAGRANT_VERSION = "0.2.2"
25
25
  end
26
26
  end
data/lib/jamie/vagrant.rb CHANGED
@@ -26,6 +26,8 @@ module Jamie
26
26
  module Vagrant
27
27
 
28
28
  # A Vagrant confiuration class which wraps a Jamie::Config instance.
29
+ #
30
+ # @author Fletcher Nichol <fnichol@nichol.ca>
29
31
  class Config < ::Vagrant::Config::Base
30
32
  extend Forwardable
31
33
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamie-vagrant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
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-27 00:00:00.000000000 Z
12
+ date: 2012-12-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jamie
@@ -75,6 +75,22 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: countloc
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
78
94
  description: Jamie::Driver::Vagrant - A Vagrant Driver for Jamie.
79
95
  email:
80
96
  - fnichol@nichol.ca
@@ -106,7 +122,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
122
  version: '0'
107
123
  segments:
108
124
  - 0
109
- hash: 1283909686719329279
125
+ hash: 287715437133563140
110
126
  required_rubygems_version: !ruby/object:Gem::Requirement
111
127
  none: false
112
128
  requirements:
@@ -115,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
131
  version: '0'
116
132
  segments:
117
133
  - 0
118
- hash: 1283909686719329279
134
+ hash: 287715437133563140
119
135
  requirements: []
120
136
  rubyforge_project:
121
137
  rubygems_version: 1.8.24