capistrano-ubuntu-ruby-setup 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
+ SHA256:
3
+ metadata.gz: 5cf68adbbc9802fb89d828e6d7d3b201a18958e177dabec61226c6243e1aec1a
4
+ data.tar.gz: '09627577f79486e6f9b7b8658270568aa27eb94b9aa9d271f897e0dd94f210ee'
5
+ SHA512:
6
+ metadata.gz: 6675da8f3878677b431b771dbc496c73511f2ed75f92b21df45dab2699deed323c6ca58a541594ae352087faba32e2c0254638dea79f78802b00d533169d828e
7
+ data.tar.gz: 67dcdb2d8271edbdd86d134867c711b4f3491433eecf416979f1552b981123ea0960a5bcd0199f21bb971c16aaab8aab3fcf6e3468f398b73076900038338c1f
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at christian.paling@googlemail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-ubuntu-ruby-setup.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Christian Paling
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,33 @@
1
+ # Capistrano Ubuntu Ruby Setup
2
+
3
+ When initially deploying you should not have to install prerequisites to use Ruby but let the automatic deployment take care of this. This gem let's you install Ruby from scratch using Rbenv under the hood.
4
+
5
+ ## Installation
6
+
7
+ Add these gems to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'capistrano', '~> 3.6'
11
+ gem 'capistrano-rbenv', '~> 2.0'
12
+ gem 'capistrano-ubuntu-ruby-setup'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Setup your deploy.rb according to [capistrano-rbenv](https://github.com/capistrano/rbenv) and add the following `require`s to your `Capfile`:
20
+
21
+ ```ruby
22
+ require 'capistrano/rbenv'
23
+ require 'capistrano/rbenv_install'
24
+ require 'sshkit/sudo'
25
+ require 'capistrano/ubuntu_ruby_setup'
26
+ ```
27
+
28
+ Run `bundle exec cap <environment> deploy` and profit.
29
+
30
+ ## License
31
+
32
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
33
+
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,27 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano/ubuntu_ruby_setup/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "capistrano-ubuntu-ruby-setup"
8
+ spec.version = Capistrano::UbuntuRubySetup::VERSION
9
+ spec.authors = ["Christian Paling"]
10
+ spec.email = ["christian.paling@googlemail.com"]
11
+
12
+ spec.summary = %q{Easily set up an ubuntu instance with a Ruby environment using capistrano}
13
+ spec.description = %q{Easily set up an ubuntu instance with a Ruby environment using capistrano}
14
+ spec.homepage = "https://github.com/bakku/capistrano-ubuntu-ruby-setup"
15
+ spec.license = "MIT"
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
+ f.match(%r{^(test|spec|features)/})
18
+ end
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_dependency 'capistrano', '>= 3.0'
22
+ spec.add_dependency 'capistrano-rbenv', '>= 2.0'
23
+ spec.add_dependency 'capistrano-rbenv-install'
24
+ spec.add_dependency 'sshkit-sudo'
25
+
26
+ spec.add_development_dependency "rake"
27
+ end
@@ -0,0 +1,25 @@
1
+ namespace :ubuntu do
2
+ desc 'Run apt-get update'
3
+ task :apt_get_update do
4
+ on roles fetch(:rbenv_roles) do
5
+ next if test "[ -d #{fetch(:rbenv_path)} ]"
6
+ execute! :sudo, "apt-get update > /dev/null"
7
+ end
8
+ end
9
+
10
+ desc 'Install everything needed for Ruby'
11
+ task :install_ruby_prerequisites do
12
+ on roles fetch(:rbenv_roles) do
13
+ next if test "[ -d #{fetch(:rbenv_path)} ]"
14
+ execute! :sudo, "apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev > /dev/null"
15
+ end
16
+ end
17
+
18
+ desc 'Prepare Ubuntu system to install ruby'
19
+ task :prepare_ubuntu do
20
+ invoke 'ubuntu:apt_get_update'
21
+ invoke 'ubuntu:install_ruby_prerequisites'
22
+ end
23
+
24
+ before 'rbenv:install', 'ubuntu:prepare_ubuntu'
25
+ end
@@ -0,0 +1 @@
1
+ load File.expand_path("../tasks/ubuntu_ruby_setup.rake", __FILE__)
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module UbuntuRubySetup
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-ubuntu-ruby-setup
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Christian Paling
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-12-05 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: capistrano-rbenv-install
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sshkit-sudo
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description: Easily set up an ubuntu instance with a Ruby environment using capistrano
84
+ email:
85
+ - christian.paling@googlemail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - CODE_OF_CONDUCT.md
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - capistrano-ubuntu-ruby-setup.gemspec
97
+ - lib/capistrano/tasks/ubuntu_ruby_setup.rake
98
+ - lib/capistrano/ubuntu_ruby_setup.rb
99
+ - lib/capistrano/ubuntu_ruby_setup/version.rb
100
+ homepage: https://github.com/bakku/capistrano-ubuntu-ruby-setup
101
+ licenses:
102
+ - MIT
103
+ metadata: {}
104
+ post_install_message:
105
+ rdoc_options: []
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ requirements: []
119
+ rubyforge_project:
120
+ rubygems_version: 2.7.6
121
+ signing_key:
122
+ specification_version: 4
123
+ summary: Easily set up an ubuntu instance with a Ruby environment using capistrano
124
+ test_files: []