dokku_client 0.5 → 0.6
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 +4 -0
- data/lib/dokku_client/cli.rb +4 -0
- data/lib/dokku_client/plugins/common.rb +8 -0
- data/lib/dokku_client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b974bc521d8459fd644f6dd46334f03995aab132
|
4
|
+
data.tar.gz: 6b631e6db2ba6646fa8ad3eef9dc797820473697
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95a231a6d4f66b4c66d1fe07e30149ff2f5b1885f1a64b4830ed3eb9277a9df841df7e8af7f6be0aa15d5ff7f9122093265c1c3867123b36fdd9a53b537b0e1a
|
7
|
+
data.tar.gz: 763546bf3ae65770d691c567b79a9eb9604765335a10f4be2fc8c0dd9d5b166d57e023a18b3cc5dedcb5237fec6d35a913dcda234f8677d063ce1f8e04fb5d99
|
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
[](https://github.com/kubalasecki/dokku_client)
|
4
4
|
|
5
|
+
[](https://codeclimate.com/github/kubalasecki/dokku_client)
|
6
|
+
|
5
7
|
DokkuClient ... This gem for now assumes that you have installed these plugins: (memcached, mongodb, mysql, postgresql, redis)
|
6
8
|
|
7
9
|
## Installation
|
@@ -32,6 +34,8 @@ Available commands (aliases to commands in brackets)
|
|
32
34
|
url (u)
|
33
35
|
plugins (p)
|
34
36
|
config (c)
|
37
|
+
rc
|
38
|
+
rcs
|
35
39
|
get_config (gc) <KEY>
|
36
40
|
set_config (sc) KEY=VALUE [KEY2=VALUE2]
|
37
41
|
unset_config (uc) KEY [KEY2]
|
data/lib/dokku_client/cli.rb
CHANGED
@@ -39,6 +39,10 @@ module DokkuClient
|
|
39
39
|
def_delegator :dokku_common, :plugins, :plugins
|
40
40
|
alias :p :plugins
|
41
41
|
|
42
|
+
def_delegator :dokku_common, :rails_console, :rc
|
43
|
+
|
44
|
+
def_delegator :dokku_common, :rails_console_staging, :rcs
|
45
|
+
|
42
46
|
### config commands
|
43
47
|
|
44
48
|
def_delegator :dokku_config, :variables, :config
|
@@ -13,6 +13,14 @@ module DokkuClient
|
|
13
13
|
dokku "run #{@options["project-name"]} #{command}"
|
14
14
|
end
|
15
15
|
|
16
|
+
def rails_console
|
17
|
+
dokku "run #{@options["project-name"]} bundle exec rails c"
|
18
|
+
end
|
19
|
+
|
20
|
+
def rails_staging_console
|
21
|
+
dokku "run #{@options["project-name"]} bundle exec rails c staging"
|
22
|
+
end
|
23
|
+
|
16
24
|
def url
|
17
25
|
dokku "url #{@options["project-name"]}"
|
18
26
|
end
|
data/lib/dokku_client/version.rb
CHANGED