crane_rails 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c61b833b1e7ac30575654a4989b287bf8bb85e0
4
- data.tar.gz: 1f127c512765ea8bd6c9a8266db7a443e381f2c1
3
+ metadata.gz: cf5f9222f8effd34b34fffa519b5e3100575f101
4
+ data.tar.gz: 4569df89fd6a27702c6a0e0c521b9064fa00630d
5
5
  SHA512:
6
- metadata.gz: 4de83d326798da4f4a3928ceecb37a2eaa8be72552f1f1fd7c30d191ef1eddbe26ef54963ec5ca97513e34d7c9612aaf02609be23ad30800047d2df749d5b35e
7
- data.tar.gz: b20249cda64474cead05b480c9709746d6f36c1799e669c40440bfd8f98a5eab8e31bd7b3e435fe70ce17b163e5023b53e83dba521eab613fd9ef34a4c05e9b2
6
+ metadata.gz: efba939925f038c35ca54aba2f3992e2d2f3f6089ad3df6b75354a18c9bcdb7f6e95fafbd958749810c2465c542eceb4a604932d07e973a15d5eb523605c45d1
7
+ data.tar.gz: 961baecc34e4336482f6ad450839ca6b15cfc3f57ed8fc7e32cfae5ec74ac5486ca2b70f19bb563dd00b11359b66432f18a6893cecab75baac0f889d65051b78
@@ -0,0 +1,22 @@
1
+ require 'thor'
2
+
3
+ module CraneRails
4
+ class CLI < Thor
5
+ include Thor::Actions
6
+
7
+ def self.source_root
8
+ File.expand_path('../templates', __FILE__)
9
+ end
10
+
11
+ desc 'bootstrap', 'Generates a files for rails app'
12
+ def bootstrap
13
+ template 'Vagrantfile', 'Vagrantfile'
14
+ remove_file 'Gemfile'
15
+ remove_file 'Gemfile.lock'
16
+ get 'https://raw.githubusercontent.com/shicholas/ng-cors-api/master/Gemfile', 'Gemfile'
17
+ get 'https://raw.githubusercontent.com/shicholas/ng-cors-api/master/Gemfile.lock', 'Gemfile.lock'
18
+ end
19
+
20
+ default_task :bootstrap
21
+ end
22
+ end
@@ -0,0 +1,10 @@
1
+ require 'thor/group'
2
+
3
+ module CraneRails
4
+ module Generators
5
+ class Recipe < Thor::Group
6
+ include Thor::Actions
7
+
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,28 @@
1
+ Vagrant.configure('2') do |config|
2
+ config.vm.box = 'coreos'
3
+ config.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant.box'
4
+
5
+ # Uncomment below to enable NFS for sharing the host machine into the coreos-vagrant VM.
6
+ config.ssh.forward_agent = true
7
+ config.vm.network 'private_network', ip: '172.12.8.150'
8
+ config.vm.synced_folder '.', '/home/core/share', id: 'core', :nfs => true, :mount_options => ['nolock,vers=3,udp']
9
+
10
+ # Fix docker not being able to resolve private registry in VirtualBox
11
+ config.vm.provider :virtualbox do |vb, override|
12
+ vb.customize ['modifyvm', :id, '--natdnshostresolver1', 'on']
13
+ vb.customize ['modifyvm', :id, '--natdnsproxy1', 'on']
14
+ end
15
+
16
+ config.vm.provider :vmware_fusion do |vb, override|
17
+ override.vm.box_url = 'http://storage.core-os.net/coreos/amd64-generic/dev-channel/coreos_production_vagrant_vmware_fusion.box'
18
+ end
19
+
20
+ # plugin conflict
21
+ if Vagrant.has_plugin?('vagrant-vbguest') then
22
+ config.vbguest.auto_update = false
23
+ end
24
+
25
+ config.vm.provider 'shell', inline: <<-COMMANDS
26
+ docker build --name=redis -d shicholas/redis
27
+ COMMANDS
28
+ end
@@ -0,0 +1,12 @@
1
+ # The project variable allows you to define a project. Currently crane supports
2
+ # * rails
3
+ # * yeoman-angular
4
+ project: 'rails'
5
+
6
+ services:
7
+ elasticsearch: 'shicholas/elasticsearch'
8
+ postgresql: 'shicholas/postgresql'
9
+ nginix: 'shicholas/nginix'
10
+ redis:
11
+ - 'shicholas/redis-server'
12
+ - 'shicholas/redis-cli'
@@ -1,3 +1,3 @@
1
1
  module CraneRails
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
data/lib/crane_rails.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'crane_rails/cli'
2
+
1
3
  module CraneRails
2
- console.log 'debugging'
3
4
  end
metadata CHANGED
@@ -1,31 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crane_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-20 00:00:00.000000000 Z
11
+ date: 2014-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rails
14
+ name: thor
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.4
19
+ version: 0.18.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.4
26
+ version: 0.18.1
27
27
  - !ruby/object:Gem::Dependency
28
- name: sqlite3
28
+ name: cucumber
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: aruba
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - ">="
@@ -48,10 +62,11 @@ files:
48
62
  - MIT-LICENSE
49
63
  - Rakefile
50
64
  - lib/crane_rails.rb
65
+ - lib/crane_rails/cli.rb
66
+ - lib/crane_rails/generators/bootstrap.rb
67
+ - lib/crane_rails/templates/Vagrantfile
68
+ - lib/crane_rails/templates/crane.yml
51
69
  - lib/crane_rails/version.rb
52
- - lib/generators/crane_rails/bootstrap/bootstrap_generator.rb
53
- - lib/generators/crane_rails/bootstrap/templates/Vagrantfile
54
- - lib/generators/crane_rails/bootstrap/templates/crane.yml
55
70
  homepage: https://github.com/shicholas/crane_rails
56
71
  licenses: []
57
72
  metadata: {}
@@ -74,5 +89,5 @@ rubyforge_project:
74
89
  rubygems_version: 2.2.1
75
90
  signing_key:
76
91
  specification_version: 4
77
- summary: Configures rails for using the golang crane library
92
+ summary: Configures rails for docker with crane
78
93
  test_files: []
@@ -1,13 +0,0 @@
1
- module CraneRails
2
- module Generators
3
- class BootstrapGenerator < Rails::Generators::Base
4
- desc 'creates files for crane_rails'
5
- source_root File.expand_path('../templates', __FILE__)
6
-
7
- def bootstrap
8
- template 'crane.yml', '.crane.yml'
9
- template 'Vagrantfile', 'Vagrantfile'
10
- end
11
- end
12
- end
13
- end
@@ -1,20 +0,0 @@
1
- # -*- mode: ruby -*-
2
- # # vi: set ft=ruby :
3
-
4
- Vagrant.configure('2') do |config|
5
- config.vm.box = 'precise'
6
- config.vm.box_url = 'hashicorp/precise64'
7
-
8
- # Add the private IP key to your /etc/hosts file
9
- config.ssh.forward_agent = true
10
- config.vm.network 'private_network', ip: '172.12.8.150'
11
- config.vm.synced_folder '.', '/home/vagrant/share', id: 'core', :nfs => true
12
-
13
- config.vm.provision 'docker'
14
- config.vm.provision 'shell', inline: <<-COMMANDS
15
- apt-get install golang-go
16
- go get github.com/shicholas/crane
17
- export PATH=$PATH:/usr/local/go/bin
18
- cd '/home/vagrant/share' && crane dev
19
- COMMANDS
20
- end
@@ -1,8 +0,0 @@
1
- dev: 'shicholas/rails-server'
2
- test: 'shicholas/rails-guard'
3
- ci: 'shicholas/rails-ci'
4
-
5
- services:
6
- elasticsearch: 'shicholas/elasticsearch'
7
- postgresql: 'shicholas/postgresql'
8
- nginix: 'shicholas/nginix'