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 +4 -4
- data/README.md +3 -3
- data/lib/dokkustrano/tasks/console.rake +4 -2
- data/lib/dokkustrano/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a159469e7cb2464e672add800f2e4f6f2e031d6fb29418cd9cb31a46f700314b
|
|
4
|
+
data.tar.gz: 34e06feaf7e5fe8a1d338ae368afd42ac30c5e82c27a3022cbdd04869844b824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
|
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
|
|
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]
|
|
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
|
-
|
|
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
|
data/lib/dokkustrano/version.rb
CHANGED
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.
|
|
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-
|
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|