capistrano-rbenv-vars 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b1f1738e8c50a3c49f638bdfc5a1f51b2f94aef9
4
+ data.tar.gz: bf9c5cdb3283325bb8d6796052f43f3dceb09ab3
5
+ SHA512:
6
+ metadata.gz: ece0a27fe10c038d83f81067f5a439d0b43ccecce7473e7943961f2964ed7d9460ab6dbb0fcc1990d70e3c7171f3656707738655e4e0f4a527fb444767e58577
7
+ data.tar.gz: bf3b5bd8477922bc786a442e89cc9d0c83683f09e219b602805738fe47e9021ab9cb45ca11315ff93823b935afa3f39ca0412dcab02b99af3db608bf67be83c2
@@ -0,0 +1,4 @@
1
+ # Changelog
2
+
3
+ ### v0.1.0, 2015-02-03
4
+ - @zshannon- all the v0.1.0 features
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in *.gemspec
4
+ gemspec
@@ -0,0 +1,19 @@
1
+ Copyright (C) 2014 Bruno Sutic
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the "Software"),
5
+ to deal in the Software without restriction, including without limitation
6
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
7
+ and/or sell copies of the Software, and to permit persons to whom the
8
+ Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included
11
+ in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
14
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
15
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
16
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
17
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
18
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
19
+ OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,51 @@
1
+ # Capistrano::Rbenv::Vars
2
+
3
+ Capistrano plugin for **lightweight** rubies management with rbenv.
4
+
5
+ Works with Capistrano 3 (only). For Capistrano 2 support check
6
+ [this repository](https://github.com/yyuu/capistrano-rbenv)
7
+ (version 1.x of `capistrano-rbenv` gem).
8
+
9
+ ### Installation
10
+
11
+ Install by adding the following to the `Gemfile`:
12
+
13
+ gem 'capistrano', '~> 3.2.1'
14
+ gem 'capistrano-rbenv', '~> 2.0' # required
15
+ gem 'capistrano-rbenv-vars', '~> 0.1'
16
+
17
+ then:
18
+
19
+ $ bundle install
20
+
21
+ ### Configuration and usage
22
+
23
+ The following goes to `Capfile`:
24
+
25
+ require 'capistrano/rbenv_vars'
26
+
27
+ This plugin does not need any setup.
28
+
29
+ Run:
30
+
31
+ $ bundle exec cap production deploy
32
+
33
+ And watch rbenv-vars being installed if neccessary.
34
+
35
+ ### Purpose
36
+
37
+ rbenv is great, but it's even better with its own environment variables. Let capsitrano provision this functionality for you!
38
+
39
+ ### More Capistrano automation?
40
+
41
+ Check out [capistrano-plugins](https://github.com/capistrano-plugins) github org.
42
+
43
+ ### Thanks
44
+
45
+ @bruno-, @yyuu and the original
46
+ [capistrano-rbenv](https://github.com/yyuu/capistrano-rbenv) project for
47
+ inspiration
48
+
49
+ ### License
50
+
51
+ [MIT](LICENSE.md)
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,29 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/rbenv_vars/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "capistrano-rbenv-vars"
8
+ gem.version = Capistrano::RbenvVars::VERSION
9
+ gem.authors = ["Zane Shannon"]
10
+ gem.email = ["zane@zaneshannon.com"]
11
+ gem.description = <<-EOF.gsub(/^\s+/, '')
12
+ Capistrano plugin for installing rbenv-vars
13
+
14
+ Works with Capistrano 3 (only!). For Capistrano 2 support see:
15
+ https://github.com/yyuu/capistrano-rbenv
16
+ EOF
17
+ gem.summary = "Capistrano plugin for installing rbenv-vars."
18
+ gem.homepage = "https://github.com/zshannon/capistrano-rbenv-vars"
19
+
20
+ gem.license = "MIT"
21
+
22
+ gem.files = `git ls-files`.split($/)
23
+ gem.require_paths = ["lib"]
24
+
25
+ gem.add_dependency 'capistrano', '>= 3.0'
26
+ gem.add_dependency 'capistrano-rbenv', '>= 2.0'
27
+
28
+ gem.add_development_dependency "rake"
29
+ end
File without changes
@@ -0,0 +1,15 @@
1
+ module Capistrano
2
+ module DSL
3
+ module RbenvVars
4
+
5
+ def rbenv_vars_path
6
+ "#{fetch(:rbenv_path)}/plugins/rbenv-vars"
7
+ end
8
+
9
+ def rbenv_vars_repo_url
10
+ 'https://github.com/sstephenson/rbenv-vars.git'
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/rbenv_vars.rake", __FILE__)
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module RbenvVars
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,24 @@
1
+ require 'capistrano/dsl/rbenv_vars'
2
+
3
+ include Capistrano::DSL::RbenvVars
4
+
5
+ # Heavily depends on 'capistrano-rbenv' variables:
6
+ # https://github.com/capistrano/rbenv/blob/master/lib/capistrano/tasks/rbenv.rake#L33-49
7
+ # set :rbenv_type # :user or :system
8
+ # set :rbenv_ruby, '2.0.0-p247' # ruby version
9
+ # set :rbenv_roles, :all # where rbenv should be installed
10
+ # set :rbenv_path, # ~/.rbenv or /usr/local/rbenv, depends on :rbenv_type
11
+ # set :rbenv_ruby_dir # "#{fetch(:rbenv_path)}/versions/#{fetch(:rbenv_ruby)}" }
12
+
13
+ namespace :rbenv do
14
+ desc 'Install rbenv-vars'
15
+ task :install_rbenv_vars do
16
+ on roles fetch(:rbenv_roles) do
17
+ next if test "[ -d #{rbenv_vars_path} ]"
18
+ execute :git, :clone, rbenv_vars_repo_url, rbenv_vars_path
19
+ end
20
+ end
21
+
22
+ before 'rbenv:validate', 'rbenv:install_rbenv_vars'
23
+ before 'bundler:map_bins', 'rbenv:install_rbenv_vars' if Rake::Task.task_defined?('bundler:map_bins')
24
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rbenv-vars
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Zane Shannon
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-02-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: capistrano
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano-rbenv
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ description: |
56
+ Capistrano plugin for installing rbenv-vars
57
+ Works with Capistrano 3 (only!). For Capistrano 2 support see:
58
+ https://github.com/yyuu/capistrano-rbenv
59
+ email:
60
+ - zane@zaneshannon.com
61
+ executables: []
62
+ extensions: []
63
+ extra_rdoc_files: []
64
+ files:
65
+ - CHANGELOG.md
66
+ - Gemfile
67
+ - LICENSE.md
68
+ - README.md
69
+ - Rakefile
70
+ - capistrano-rbenv-vars.gemspec
71
+ - lib/capistrano-rbenv-vars.rb
72
+ - lib/capistrano/dsl/rbenv_vars.rb
73
+ - lib/capistrano/rbenv_vars.rb
74
+ - lib/capistrano/rbenv_vars/version.rb
75
+ - lib/capistrano/tasks/rbenv_vars.rake
76
+ homepage: https://github.com/zshannon/capistrano-rbenv-vars
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.2.2
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Capistrano plugin for installing rbenv-vars.
100
+ test_files: []