Package not found. Please check the package name and try again.

opskeleton 0.4.8 → 0.4.9

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89f3f9264b9c40c2efa8c3515abb7b61dde9a349
4
- data.tar.gz: 4eaef8748fc5c7f1438a411341ac71d78191d059
3
+ metadata.gz: a98118097e8f9673381f953bbb3d69c1e84873de
4
+ data.tar.gz: 37266878cf0442b7690d5a640064a8116342e70b
5
5
  SHA512:
6
- metadata.gz: 60cc93e8b0e2cfafe0e7a0b1981a105892d9fbfdd8b66622a0075349e71f9d6e64536745ad5ebefd5cfac2ad210b79ba35957943678439f6f24dd5bb42733c3f
7
- data.tar.gz: 09b8fade8cf725ff26c967c8c4d0733e4b825ef67c99ec6588282ef278ae59a189b0f1fd9eb727be5994b6006ebfc475885fe6de0ffbf79834a4ea62f0ef7b17
6
+ metadata.gz: a755d337668e8aa3197838c8ff0633caa6f705b6ac2de50ed86214f756480f1f3dc895a1feb88db354ca0bf8218db9e002faf9efa464f6b69f3bfecae813f492
7
+ data.tar.gz: 0f9a8a1283175f192339f6a48089ff88454ba13fa77f7806bc241fd4299ea1dc834707da8e88f5dad92493e793912d4b6ef8452ba6a68c13cf2ffbb82dadd5fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- opskeleton (0.4.7)
4
+ opskeleton (0.4.8)
5
5
  bintray_deploy
6
6
  thor
7
7
 
@@ -5,6 +5,7 @@ module Opsk
5
5
  argument :name, :type => :string, :desc => 'project name'
6
6
  argument :box, :type => :string, :desc => 'Vagrant box type'
7
7
  class_option :box_url, :type=> :string, :desc => 'vagrant box url'
8
+ class_option :os_type, :type=> :string, :desc => 'Operating system type (bsd/linux)'
8
9
 
9
10
  desc 'Generate a Vagrant, Puppet librarian and fpm project'
10
11
 
@@ -14,7 +15,12 @@ module Opsk
14
15
 
15
16
  def create_vagrant_file
16
17
  empty_directory(path)
17
- template('templates/vagrant.erb', "#{path}/Vagrantfile")
18
+ case options['os_type']
19
+ when 'bsd'
20
+ template('templates/vagrant_bsd.erb', "#{path}/Vagrantfile")
21
+ else
22
+ template('templates/vagrant.erb', "#{path}/Vagrantfile")
23
+ end
18
24
  end
19
25
 
20
26
  def create_gemfile
@@ -72,12 +78,12 @@ module Opsk
72
78
 
73
79
  def git
74
80
  if(!File.exists?("#{path}/.git"))
75
- copy_file('templates/gitignore', "#{path}/.gitignore")
76
- inside(path) do
77
- run('git init .')
78
- run('git add -A')
79
- run("git commit -m 'initial sandbox import'")
80
- end
81
+ copy_file('templates/gitignore', "#{path}/.gitignore")
82
+ inside(path) do
83
+ run('git init .')
84
+ run('git add -A')
85
+ run("git commit -m 'initial sandbox import'")
86
+ end
81
87
  end
82
88
  end
83
89
 
@@ -1,3 +1,3 @@
1
1
  module Opskeleton
2
- VERSION = '0.4.8'
2
+ VERSION = '0.4.9'
3
3
  end
@@ -0,0 +1,23 @@
1
+ # -*- mode: ruby -*-
2
+ # vi: set ft=ruby :
3
+ Vagrant.configure("2") do |config|
4
+
5
+ bridge = ENV['VAGRANT_BRIDGE']
6
+ bridge ||= 'eth0'
7
+ env = ENV['PUPPET_ENV']
8
+ env ||= 'dev'
9
+
10
+ config.vm.box = '<%=box%>' <%if(options['box_url']) %>
11
+ <%="config.vm.box_url = '#{options['box_url']}'"%> <%end%>
12
+ config.vm.guest = :freebsd
13
+ config.vm.network :public_network, :bridge => bridge
14
+ config.vm.network "private_network", ip: "10.0.1.10"
15
+ config.vm.hostname = '<%=name%>.local'
16
+
17
+ config.vm.provider :virtualbox do |vb|
18
+ vb.customize ['modifyvm', :id, '--memory', 2048, '--cpus', 2]
19
+ end
20
+
21
+ config.vm.synced_folder ".", "/vagrant", :nfs => true, id: "vagrant-root"
22
+ config.vm.provision "shell", inline: 'cd /vagrant && ./run.sh'
23
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opskeleton
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - narkisr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-26 00:00:00.000000000 Z
11
+ date: 2014-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -150,6 +150,7 @@ files:
150
150
  - templates/scripts/run.sh
151
151
  - templates/spec.erb
152
152
  - templates/vagrant.erb
153
+ - templates/vagrant_bsd.erb
153
154
  - test/generate_test.rb
154
155
  - test/package_test.rb
155
156
  - test/test_helper.rb