capistrano-forkcms 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3318d335c4f055d87e7fd6a0211ce0b0c995442d
4
- data.tar.gz: 827d06b0ffbd892cc57559a9c06c8ca7135133f2
3
+ metadata.gz: f3bb3f838a9decc5e3f5abb35a9be070cb29ec62
4
+ data.tar.gz: b50cb4edf7b9bad52d0b59084051094a6eac517e
5
5
  SHA512:
6
- metadata.gz: 9e5eed958554b121bedc91beb491ea3ad4ed0fa1abacb25da318110fa9f81e1d8f5f72cb47a671dbe610e2e592d345bc6cfa6d577626f882b9995c931676e407
7
- data.tar.gz: f19d32a20f0dc3da17bc1f25a270e5cec654981ebc578acb0545c9ffc2ad75b24e5be7862f8260c57db07436ea2ae01909b290b567ac649d73c1201ffd146641
6
+ metadata.gz: 3735442b1fcc2b7219871c836528c842552eb511947c79279c694153a574881a6603dcd91cabba43c72e0fc293bf64fd099da958548ca3b8f2bef115a926b6ee
7
+ data.tar.gz: d8c1560817561229a24bf24d87fc476eb6d2e3f08f047acc7922678516d3354fb489c4c7cb39dc75cc59794541a97d0a4db137afa3e0b62b8c08709a33810a7e
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Capistrano::Forkcms
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/capistrano/forkcms`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Fork CMS specific Capistrano tasks
4
+
5
+ Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over SSH.
4
6
 
5
- TODO: Delete this and the text above, and describe your gem
6
7
 
7
8
  ## Installation
8
9
 
@@ -16,26 +17,69 @@ And then execute:
16
17
 
17
18
  $ bundle
18
19
 
19
- Or install it yourself as:
20
-
21
- $ gem install capistrano-forkcms
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ Require the module in your Capfile:
24
+
25
+ require "capistrano/forkcms"
26
+
27
+ The plugin comes with two tasks:
28
+
29
+ * `forkcms:configure:composer`, which will configure the `capistrano/composer` plugin.
30
+ * `forkcms:symlink:document_root`, which will link the document_root to the current-folder.
31
+
32
+ But you won't need any of them as everything is wired automagically.
33
+
34
+
35
+ ## Configuration
36
+
37
+ Configuration options:
38
+
39
+ * `:php_bin_custom_path`, this will allow you to configure a custom PHP binary, the fallback is `php`.
40
+
41
+
42
+ ## How to use with a fresh Fork install
43
+
44
+ 1. Create a Capfile with the content below:
26
45
 
27
- ## Development
46
+ # Load DSL and set up stages
47
+ require "capistrano/setup"
28
48
 
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+ # Include default deployment tasks
50
+ require "capistrano/deploy"
30
51
 
31
- 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).
52
+ require "capistrano/scm/git"
53
+ install_plugin Capistrano::SCM::Git
54
+
55
+ require "capistrano/forkcms"
56
+
57
+ # Load custom tasks from `lib/capistrano/tasks` if you have any defined
58
+ Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
59
+
60
+ 2. Create a file called `config/deploy.rb`, with the content below:
61
+
62
+ set :application, "$your-application-name"
63
+ set :repo_url, "$your-repo-url"
64
+
65
+ set :keep_releases, 3
66
+
67
+ 3. Create a file called `config/deploy/production.rb`, with the content below:
68
+
69
+ ... @todo, fix this
70
+
71
+ 4. Create a file called `config/deploy/staging.rb`, with the content below:
72
+
73
+ server "$your-server-hostname", user: "sites", roles: %w{app db web}
74
+ set :deploy_to, "$your-path-where-everything-should-be-deployed"
75
+ set :document_root, "$your-document-root"
76
+
32
77
 
33
78
  ## Contributing
34
79
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/capistrano-forkcms.
80
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/tijsverkoyen/capistrano-forkcms](https://github.com/tijsverkoyen/capistrano-forkcms).
36
81
 
37
82
 
38
83
  ## License
39
84
 
40
85
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
-
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Fork CMS specific Capistrano tasks}
13
13
  spec.description = %q{Capistrano ForkCMS - Easy deployment of ForkCMS 5+ apps with Ruby over SSH}
14
- spec.homepage = "https://github.com/tijsverkoyen/capistrano-fork"
14
+ spec.homepage = "https://github.com/tijsverkoyen/capistrano-forkcms"
15
15
  spec.license = "MIT"
16
16
 
17
17
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Forkcms
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-forkcms
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tijs Verkoyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-16 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,7 +101,7 @@ files:
101
101
  - lib/capistrano/forkcms/defaults.rb
102
102
  - lib/capistrano/forkcms/version.rb
103
103
  - lib/capistrano/tasks/forkcms.rake
104
- homepage: https://github.com/tijsverkoyen/capistrano-fork
104
+ homepage: https://github.com/tijsverkoyen/capistrano-forkcms
105
105
  licenses:
106
106
  - MIT
107
107
  metadata: {}