dokkustrano 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f6aa8fa86d37528f383f054151ede08d2ed7ee843ef4b2d4dedbf9df569ce70f
4
- data.tar.gz: 6e6778de1eada6782248bd23865d48c2ce4261a267f7107eb68b929551bfb3b5
3
+ metadata.gz: a159469e7cb2464e672add800f2e4f6f2e031d6fb29418cd9cb31a46f700314b
4
+ data.tar.gz: 34e06feaf7e5fe8a1d338ae368afd42ac30c5e82c27a3022cbdd04869844b824
5
5
  SHA512:
6
- metadata.gz: 8331bbefa273f54ae550013b8ac135f4676ac847e14d838f3f9f044e766d0d1968962b9c41edb1592235d4e29966b264106f0ef42b8c0a28502f82d9bfda1e8f
7
- data.tar.gz: 301f2781c3e8b281fbe93225fafc933ed6904183d971356e46a1ab0009b51620f4f783f3813a4026ff847468b4aa9c311978c95989d72d2fe0cc6f1b7306e625
6
+ metadata.gz: 0e04910613df7c8686e5664df07cef60ab075587300e0550951de231fe267a5f5ae189f6b668075620de45bc3d54fa02c1bd7d368e3b62d1b7be566f10192aae
7
+ data.tar.gz: 4973c6b259117207ffecfea2134561d74778bc1439b13cd22aff5b92dbee39ac783cce012af392ccfc7f3070e3beaeb3bfac11c0c49997efd80ec8b0b1be8e8d
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Dokkustrano is a library for connecting with Dokku servers which run Ruby on Rails applications.
4
4
 
5
- Once installed on a Rails project, Capistrano gives you rake tasks to perform several operations from your command line.
5
+ Once installed on a Rails project, Dokkustrano gives you rake tasks to perform several operations from your command line.
6
6
 
7
7
  ```
8
8
  $ cd my-dokkustrano-enabled-rails-project
@@ -26,7 +26,7 @@ Add the gem to your project's Gemfile:
26
26
  gem 'dokkustrano'
27
27
  ```
28
28
 
29
- Then run Bundler to ensure Capistrano is downloaded and installed:
29
+ Then run Bundler to ensure Dokkustrano is downloaded and installed:
30
30
 
31
31
  ``` sh
32
32
  bundle install
@@ -46,7 +46,7 @@ end
46
46
 
47
47
  These are all the Rake tasks which are provided by this gem:
48
48
  ```ruby
49
- rails dokku:console[app] # Connect with Dokku app and open a Rails console
49
+ rails dokku:console[app,environment] # Connect with Dokku app and open a Rails console (if no environment is received, production is used)
50
50
  rails dokku:data:export[app] # Download dump from Dokku given app
51
51
  rails dokku:data:import[app,path] # Import dump to given Dokku app
52
52
  rails dokku:postgres:change_version[service,version] # Change PostgreSQL version for given Dokku database service
@@ -1,8 +1,10 @@
1
1
  desc 'Connect with Dokku app and open a Rails console'
2
- task :console, [:app] => :environment do |t, args|
2
+ task :console, [:app, :environment] => :environment do |t, args|
3
3
  include Dokkustrano::Validations
4
4
 
5
5
  validate_app_argument!(args)
6
6
 
7
- sh "ssh -t #{Dokkustrano.configuration.host_name} 'dokku run #{args[:app]} rails console -e production'"
7
+ environment = args[:environment] || 'production'
8
+
9
+ sh "ssh -t #{Dokkustrano.configuration.host_name} 'dokku run #{args[:app]} rails console -e #{environment}'"
8
10
  end
@@ -1,3 +1,3 @@
1
1
  module Dokkustrano
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokkustrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lucas Hourquebie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake