capistrano-ry 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d9e9b4885f5fa8adf3d6b25cb9102dfcb3f82b7f
4
+ data.tar.gz: e8b97f430b6fa74e9fba788520ddb2f1d21cd1b4
5
+ SHA512:
6
+ metadata.gz: d94cd482e8c9a5a28e33088c18df69773a56ba13dbf6cf4daf6da3c49823667329cc4226d4b8bbe6971172895844d4a5a3c60417e1245071d059a74b1777c0f7
7
+ data.tar.gz: c9a6b3853a6cd75bbcb011e007704e306e771cbb3fd732fc2768476b2806745c36b1102c5b2b7f3556e4b583e61df25c0809c2ae3613cda0166488460c84c697
@@ -0,0 +1,19 @@
1
+ vagrant/
2
+ *.gem
3
+ *.rbc
4
+ .bundle
5
+ .config
6
+ coverage
7
+ InstalledFiles
8
+ lib/bundler/man
9
+ pkg
10
+ rdoc
11
+ spec/reports
12
+ test/tmp
13
+ test/version_tmp
14
+ tmp
15
+
16
+ # YARD artifacts
17
+ .yardoc
18
+ _yardoc
19
+ doc/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-chruby.gemspec
4
+ gemspec
@@ -0,0 +1,35 @@
1
+ # Capistrano::ry
2
+
3
+ ## Installation
4
+
5
+ Add this line to your application's Gemfile:
6
+
7
+ gem 'capistrano', '~> 3.0'
8
+ gem 'capistrano-ry', github: "capistrano/ry"
9
+
10
+ And then execute:
11
+
12
+ $ bundle install
13
+
14
+ ## Usage
15
+
16
+ # Capfile
17
+ require 'capistrano/ry'
18
+
19
+
20
+ # config/deploy.rb
21
+ set :ry_ruby, 'ruby-2.0.0-p247'
22
+
23
+ If ry is installed in a custom path (other than ~/.local), you need to
24
+ override the following default variable :
25
+
26
+ # config/deploy.rb
27
+ set :ry_path, File.join("~", '.local')
28
+
29
+ ## Contributing
30
+
31
+ 1. Fork it
32
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
33
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
34
+ 4. Push to the branch (`git push origin my-new-feature`)
35
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "capistrano-ry"
7
+ gem.version = '0.1.0'
8
+ gem.authors = ["Thomas Kienlen"]
9
+ gem.email = ["thomas.kienlen@lafourmi-immo.com"]
10
+ gem.description = %q{ry integration for Capistrano}
11
+ gem.summary = %q{ry integration for Capistrano}
12
+ gem.homepage = "https://github.com/kmmndr/ry"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.require_paths = ["lib"]
17
+
18
+ gem.add_dependency 'capistrano', '~> 3.0'
19
+ gem.add_dependency 'sshkit', '~> 1.2.0'
20
+
21
+ end
File without changes
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/ry.rake", __FILE__)
@@ -0,0 +1,34 @@
1
+ namespace :ry do
2
+ task :validate do
3
+ on roles(:all) do
4
+ if fetch(:ry_ruby).nil?
5
+ error "ry: ry_ruby is not set"
6
+ exit 1
7
+ end
8
+ end
9
+ end
10
+
11
+ task :map_bins do
12
+ ry_prefix = "#{fetch(:ry_exec)} #{fetch(:ry_ruby)}"
13
+
14
+ fetch(:ry_map_bins).each do |command|
15
+ SSHKit.config.command_map.prefix[command.to_sym].unshift(ry_prefix)
16
+ end
17
+ end
18
+
19
+ end
20
+
21
+ Capistrano::DSL.stages.each do |stage|
22
+ after stage, 'ry:validate'
23
+ after stage, 'ry:map_bins'
24
+ end
25
+
26
+ namespace :load do
27
+ task :defaults do
28
+ set :ry_map_bins, %w{env rake gem bundle ruby}
29
+ set :ry_path, File.join("~", '.local')
30
+ set :ry_exec, -> {
31
+ "#{File.join(fetch(:ry_path), 'bin', 'ry')} exec"
32
+ }
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-ry
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thomas Kienlen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-20 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: sshkit
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.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: 1.2.0
41
+ description: ry integration for Capistrano
42
+ email:
43
+ - thomas.kienlen@lafourmi-immo.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - README.md
51
+ - Rakefile
52
+ - capistrano-ry.gemspec
53
+ - lib/capistrano-ry.rb
54
+ - lib/capistrano/ry.rb
55
+ - lib/capistrano/tasks/ry.rake
56
+ homepage: https://github.com/kmmndr/ry
57
+ licenses: []
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '>='
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - '>='
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.0.3
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: ry integration for Capistrano
79
+ test_files: []