capistrano-dotenv-tasks 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OWMyMDU4NmIyN2Q3ZTA1N2I1ZjEzYmUyYmRjYWQ3ODBkMTI3OTY3Yw==
5
- data.tar.gz: !binary |-
6
- OTZjYjVhZDk3NjE5YzQ5MDk1ZTY0NWMyMjM2ZThmYjk2Yjk5OGE0NQ==
2
+ SHA1:
3
+ metadata.gz: 0e1725d22c45bfd465cfa8975077fab76a878bdf
4
+ data.tar.gz: 1d050882c959ea6a976f02684e4a78cf3de226c3
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NjMxMjdkOTI0MTAzYzU0ZDFhOTZiMGFhYWQ3NGE1OWU3ZTUyZTZhZTk5NzVj
10
- NzMyYzg1ZDhiN2UwNDY1NGJmYjc1ZTdjYzZmZTVlYzI5MjUzOGQ1NzE5NGMy
11
- MzJjYTgwMTk1ZDlhOThhZWYyMDM1NzMyZDY1ZDAzMjk4ZjBlNGM=
12
- data.tar.gz: !binary |-
13
- Yzc1ZTEyZGI2OTdjNTIxZjU5MzY2YTcxNmY1ZmJlMmRiZmZiYzMxNzM2OTlj
14
- NmU4OGM3NjJjODU1OWIzZjZjNjU0NTE0N2ZlMzFkZWYzNWQ2ZDk1M2MxMWFm
15
- YjM4MmFjMjAwY2NkY2M4ODIyMGMyMTliMGY0NWFiNGI3NjdmNWU=
6
+ metadata.gz: 30ff26bcace66fc3ec6e5f323fdcc3f259f69d2bd7905ce41ffe0356591dee7830e1efb81cd6527e742cc23936ec9846275c6156dd69a294f7dbc703ec0750ac
7
+ data.tar.gz: a5348e41d4e820bff31610e3428711377482398dfa2bbc5c5503a51e457ef841f21cf5c4f787ca6cbdcb91380c022cc8251dfcff6b0e07bff00772188d32402f
data/.gitignore CHANGED
@@ -12,3 +12,5 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ /**/.DS_Store
16
+ *.gem
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Capistrano::Dotenv::Tasks
2
2
 
3
- TODO: Write a gem description
3
+ Show, set and delete env vars in your `.env` remote file with Capistrano 3.
4
4
 
5
5
  ## Installation
6
6
 
@@ -20,12 +20,41 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- TODO: Write usage instructions here
23
+ Require it in your Capfile :
24
+
25
+ ```ruby
26
+ require 'capistrano/dotenv/tasks'
27
+ ```
28
+
29
+ Then use it from the `cap` command.
30
+
31
+
32
+ ### Show your config
33
+
34
+ ```
35
+ $ cap production config:show
36
+ ```
37
+
38
+ ### Create / Update a variable
39
+
40
+ ```
41
+ $ cap production config:set VARNAME=value
42
+ ```
43
+
44
+ ### Delete a variable
45
+
46
+ ```
47
+ $ cap production config:remove key=VARNAME
48
+ ```
24
49
 
25
50
  ## Contributing
26
51
 
27
- 1. Fork it ( https://github.com/[my-github-username]/capistrano-dotenv-tasks/fork )
52
+ 1. Fork it ( https://github.com/glyph-fr/capistrano-dotenv-tasks/fork )
28
53
  2. Create your feature branch (`git checkout -b my-new-feature`)
29
54
  3. Commit your changes (`git commit -am 'Add some feature'`)
30
55
  4. Push to the branch (`git push origin my-new-feature`)
31
56
  5. Create a new Pull Request
57
+
58
+ ## Licence
59
+
60
+ MIT
@@ -12,7 +12,7 @@ namespace :config do
12
12
  desc "Set an environment variable in .env config file"
13
13
  task :set do
14
14
  on roles(:app) do
15
- config = Config.new(capture("cat #{ shared_path }/.env"))
15
+ config = Capistrano::Dotenv::Config.new(capture("cat #{ shared_path }/.env"))
16
16
  config.add(*ARGV[2..-1])
17
17
  upload!(StringIO.new(config.compile), "#{ shared_path }/.env")
18
18
  end
@@ -25,7 +25,7 @@ namespace :config do
25
25
  end
26
26
 
27
27
  on roles(:app) do
28
- config = Config.new(capture("cat #{ shared_path }/.env"))
28
+ config = Capistrano::Dotenv::Config.new(capture("cat #{ shared_path }/.env"))
29
29
  config.remove(ENV['key'])
30
30
  upload!(StringIO.new(config.compile), "#{ shared_path }/.env")
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Dotenv
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-dotenv-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valentin Ballestrino
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  description: Capistrano tasks to configure your remote dotenv files
@@ -45,13 +45,12 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
48
+ - ".gitignore"
49
49
  - Gemfile
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
53
  - capistrano-dotenv-tasks.gemspec
54
- - lib/capistrano/dotenv/.DS_Store
55
54
  - lib/capistrano/dotenv/config.rb
56
55
  - lib/capistrano/dotenv/tasks.rb
57
56
  - lib/capistrano/dotenv/version.rb
@@ -65,17 +64,17 @@ require_paths:
65
64
  - lib
66
65
  required_ruby_version: !ruby/object:Gem::Requirement
67
66
  requirements:
68
- - - ! '>='
67
+ - - ">="
69
68
  - !ruby/object:Gem::Version
70
69
  version: '0'
71
70
  required_rubygems_version: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - ! '>='
72
+ - - ">="
74
73
  - !ruby/object:Gem::Version
75
74
  version: '0'
76
75
  requirements: []
77
76
  rubyforge_project:
78
- rubygems_version: 2.4.5
77
+ rubygems_version: 2.4.4
79
78
  signing_key:
80
79
  specification_version: 4
81
80
  summary: Capistrano tasks to configure your remote dotenv files
Binary file