dokku_client 0.5 → 0.6

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: 8eb88ba17e7689ca664dab08c4fcdd18ebd55487
4
- data.tar.gz: c2fe485276c815f65b05f2efac400bebbc59165a
3
+ metadata.gz: b974bc521d8459fd644f6dd46334f03995aab132
4
+ data.tar.gz: 6b631e6db2ba6646fa8ad3eef9dc797820473697
5
5
  SHA512:
6
- metadata.gz: 303ce867ec5fe052b9cb19d25e41f78ebed6e19053a4b76fd1417893d6a1b874c2cf34e0a9fc5aafb8aef3ee62f3272fa0ca06227b2a9805395e1381cea2fe15
7
- data.tar.gz: 32ab57cb922bbbd3eb3a9ea732b80df470a7afe121a72bfeedfd0d064e38e46cc53445cb769c320a3e29bd1bd5841800db03472357436afe93d9bbb5aa68cd77
6
+ metadata.gz: 95a231a6d4f66b4c66d1fe07e30149ff2f5b1885f1a64b4830ed3eb9277a9df841df7e8af7f6be0aa15d5ff7f9122093265c1c3867123b36fdd9a53b537b0e1a
7
+ data.tar.gz: 763546bf3ae65770d691c567b79a9eb9604765335a10f4be2fc8c0dd9d5b166d57e023a18b3cc5dedcb5237fec6d35a913dcda234f8677d063ce1f8e04fb5d99
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  [![weasel](http://www.chromosomechronicles.com/wp-content/uploads/2010/03/i-am-weasel.jpg)](https://github.com/kubalasecki/dokku_client)
4
4
 
5
+ [![Code Climate](https://codeclimate.com/github/kubalasecki/dokku_client.png)](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]
@@ -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
@@ -1,3 +1,3 @@
1
1
  module DokkuClient
2
- VERSION = '0.5'
2
+ VERSION = '0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokku_client
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kuba Łasecki