forked from nebulab/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
21 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.4.0 | ||
3.0.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ def call | |
when :github then clone_github_repository | ||
when :folder then copy_local_folder | ||
end | ||
rescue | ||
rescue StandardError | ||
context_fail! $!.message | ||
end | ||
|
||
|
@@ -23,7 +23,7 @@ def clone_git_repository | |
quiet = '>/dev/null 2>&1' | ||
|
||
Rake.sh( | ||
"#{cmd} #{opts} #{context.repository} #{context.config_path} #{quiet}" | ||
"#{cmd} #{opts} #{context.repository} #{context.config_path} #{quiet}", | ||
) | ||
end | ||
|
||
|
@@ -34,12 +34,13 @@ def clone_github_repository | |
repo = "[email protected]:#{context.repository}.git" | ||
|
||
Rake.sh( | ||
"#{cmd} #{opts} #{repo} #{context.config_path} #{quiet}" | ||
"#{cmd} #{opts} #{repo} #{context.config_path} #{quiet}", | ||
) | ||
end | ||
|
||
def copy_local_folder | ||
raise "No repository found at #{context.repository}" unless File.exist? context.repository | ||
|
||
FileUtils.cp_r("#{context.repository}/.", context.config_path) | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ def call | |
else | ||
:remote | ||
end | ||
rescue | ||
rescue StandardError | ||
context_fail! $!.message | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Pulsar | ||
VERSION = '1.1.1'.freeze | ||
VERSION = '1.1.2'.freeze | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
lib = File.expand_path('../lib', __FILE__) | ||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'pulsar/version' | ||
|
||
Gem::Specification.new do |gem| | ||
gem.name = 'pulsar' | ||
gem.version = Pulsar::VERSION | ||
gem.licenses = ['MIT'] | ||
gem.licenses = ['MIT'] | ||
gem.authors = ['Matteo Latini'] | ||
gem.email = ['[email protected]'] | ||
gem.homepage = 'http://pulsar.nebulab.it' | ||
|
@@ -15,22 +15,22 @@ Gem::Specification.new do |gem| | |
to store all your precious configurations and recipes to build Capistrano | ||
deploys on it. | ||
' | ||
|
||
gem.required_ruby_version = '>= 2.6.3' | ||
gem.files = `git ls-files`.split($/) | ||
gem.bindir = 'exe' | ||
gem.executables = gem.files.grep(%r{^exe\/}).map { |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)\/}) | ||
gem.executables = gem.files.grep(%r{^exe/}).map { |f| File.basename(f) } | ||
gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) | ||
gem.require_paths = ['lib'] | ||
|
||
gem.add_dependency 'bundler', '~> 2' | ||
gem.add_dependency 'thor', '~> 0.19' | ||
gem.add_dependency 'interactor', '~> 3.1' | ||
gem.add_dependency 'dotenv', '~> 2.0' | ||
gem.add_dependency 'bundler', '> 2' | ||
gem.add_dependency 'dotenv', '> 2.0' | ||
gem.add_dependency 'interactor', '> 3.1' | ||
gem.add_dependency 'thor', '> 0.19' | ||
|
||
gem.add_development_dependency 'rake', '~> 10.4' | ||
gem.add_development_dependency 'rspec', '~> 3.2' | ||
gem.add_development_dependency 'rubocop', '~> 0.47' | ||
gem.add_development_dependency 'timecop', '~> 0.8' | ||
gem.add_development_dependency 'simplecov', '~> 0.14.0' | ||
gem.add_development_dependency 'coveralls', '~> 0.8.20' | ||
gem.add_development_dependency 'coveralls', '> 0.8.20' | ||
gem.add_development_dependency 'rake', '> 10.4' | ||
gem.add_development_dependency 'rspec', '> 3.2' | ||
gem.add_development_dependency 'rubocop', '> 0.47' | ||
gem.add_development_dependency 'simplecov', '> 0.14.0' | ||
gem.add_development_dependency 'timecop', '> 0.8' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# staging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Capfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters