capistrano-middleman2 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 371a5a1ff1b16f9661e7cb4c0c293df69ce3acd0e8d3c5b2e02908a47ab0c0f9
4
+ data.tar.gz: f1ae67fa18b1cf10a72e37e1682c7a7682674e91f1d98f4473cd664354defd85
5
+ SHA512:
6
+ metadata.gz: c07b43aeb123eb475f32b7a435116dad0eafb664debb537cc5c3afcaa263e78b2bc95f66227fe2de011fdf54f83e7cf82e3e6dddfb30552c5cd3cb7d512dddd8
7
+ data.tar.gz: 244948113f6e9cece613164f1c2493ccc7057055c09eaa0355765d39d8c7d3f9973a53ce73dea26deea284c234feeaff9508f204729a8b689317a3cef7d1f026
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /Gemfile.lock
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in capistrano-middleman2.gemspec
6
+ gemspec
data/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # capistrano-middleman2
2
+
3
+ Run middleman's build command on each host.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'capistrano-middleman2'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install capistrano-middleman2
20
+
21
+ ## Usage
22
+
23
+ Add to Capfile:
24
+
25
+ ```ruby
26
+ require 'capistrano/middleman2'
27
+ ```
28
+
29
+ And run deploy!
30
+ Then `bundle exec middleman build` runs on each host's release path.
31
+
32
+ ### Options
33
+
34
+ ```ruby
35
+ # Build command to be run
36
+ set :middleman_build_command, ->{ [:bundle, :exec, :middleman, :build] }
37
+
38
+ # Environment variables to run the build command
39
+ set :middleman_build_environment_variables, ->{ {} }
40
+
41
+ # Role(s) on where the build command run
42
+ set :middleman_roles, ->{ :all }
43
+ ```
44
+
45
+ ### Not Options
46
+
47
+ - build directory : this is configurable with config.rb
48
+ - source directory : this is configurable with config.rb
49
+
50
+ ## Development
51
+
52
+ After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
53
+
54
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
55
+
56
+ ## Contributing
57
+
58
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano-middleman2.
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "capistrano/middleman2"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,30 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "capistrano/middleman2/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "capistrano-middleman2"
8
+ spec.version = Capistrano::Middleman2::VERSION
9
+ spec.authors = ["Masato Ikeda"]
10
+ spec.email = ["masato.ikeda@gmail.com"]
11
+
12
+ spec.summary = %q{Run middleman build on each host.}
13
+ spec.description = %q{Run middleman build on each host.}
14
+ spec.homepage = "https://github.com/a2ikm/capistrano-middleman2"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "capistrano", ">= 3.0"
26
+ spec.add_dependency "middleman", ">= 3.0"
27
+
28
+ spec.add_development_dependency "bundler", "~> 1.16"
29
+ spec.add_development_dependency "rake", "~> 10.0"
30
+ end
@@ -0,0 +1,2 @@
1
+ require "capistrano/middleman2/version"
2
+ load File.expand_path("../tasks/middleman2.rake", __FILE__)
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module Middleman2
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
@@ -0,0 +1,22 @@
1
+ namespace :middleman do
2
+ task :build do
3
+ on release_roles(fetch(:middleman_roles)) do
4
+ within release_path do
5
+ with fetch(:middleman_build_environment_variables) do
6
+ command = fetch(:middleman_build_command)
7
+ execute *command
8
+ end
9
+ end
10
+ end
11
+ end
12
+ end
13
+
14
+ after "deploy:updated", "middleman:build"
15
+
16
+ namespace :load do
17
+ task :defaults do
18
+ set :middleman_build_command, ->{ [:bundle, :exec, :middleman, :build] }
19
+ set :middleman_build_environment_variables, ->{ {} }
20
+ set :middleman_roles, ->{ :all }
21
+ end
22
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-middleman2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Masato Ikeda
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-03-01 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: middleman
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ description: Run middleman build on each host.
70
+ email:
71
+ - masato.ikeda@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - README.md
79
+ - Rakefile
80
+ - bin/console
81
+ - bin/setup
82
+ - capistrano-middleman2.gemspec
83
+ - lib/capistrano/middleman2.rb
84
+ - lib/capistrano/middleman2/version.rb
85
+ - lib/capistrano/tasks/middleman2.rake
86
+ homepage: https://github.com/a2ikm/capistrano-middleman2
87
+ licenses: []
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.7.6
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Run middleman build on each host.
109
+ test_files: []