dokuen 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -54,9 +54,8 @@ This will ask you a few questions, set up a few directories, and install a few u
54
54
  ## Creating an App
55
55
 
56
56
  ```
57
- $ ssh git@<your_host> dokuen create <name>
58
- Creating new application named <name>
59
- Remote: git@<your_host>:<name>.git
57
+ $ ssh git@<your_host> dokuen create --application=<name>
58
+ git@<your_host>:<name>.git
60
59
 
61
60
  $ git remote add dokuen git@<your_host>:<name>.git
62
61
  ```
@@ -64,7 +63,7 @@ $ git remote add dokuen git@<your_host>:<name>.git
64
63
  ### Add some environment variables
65
64
 
66
65
  ```
67
- $ ssh git@<your_host> dokuen config <name> set -V BUILDPACK_URL="https://github.com/heroku/heroku-buildpack-ruby.git" PORT=12345 DOKUEN_SCALE="web=1"
66
+ $ ssh git@<your_host> dokuen config_set -V BUILDPACK_URL="https://github.com/heroku/heroku-buildpack-ruby.git" DOKUEN_SCALE="web=1" --application=<name>
68
67
  ```
69
68
 
70
69
  ### Deploy
@@ -80,12 +79,10 @@ $ open http://<your_host>:12345/
80
79
 
81
80
  ## Available "app" Sub-commands
82
81
 
83
- * `create <name>`
84
- * `config <name>`
85
- * `set <key>=<value> ...`
86
- * `delete <key> ...`
87
- * `restart_app <name>`
88
- * `scale <name> <type>=<num>`
82
+ * `create`
83
+ * `config_set <key>=<value> ...`
84
+ * `config_delete <key> ...`
85
+ * `scale <type>=<num>...`
89
86
  * `buildpacks`
90
87
  * `install_buildpack <url>`
91
88
  * `remove_buildpack <name>`
@@ -103,7 +100,8 @@ include /usr/local/var/dokuen/nginx/*.conf;
103
100
  Then, force a restart of your app:
104
101
 
105
102
  ```
106
- $ ssh git@<your_host> dokuen restart_app <name>
103
+ $ ssh git@<your_host> dokuen scale web=0 --application=<name>
104
+ $ ssh git@<your_host> dokuen scale web=1 --application=<name>
107
105
  ```
108
106
 
109
107
  ## Rails
data/lib/dokuen/cli.rb CHANGED
@@ -97,6 +97,21 @@ class Dokuen::CLI < Thor
97
97
  end
98
98
  end
99
99
 
100
+ desc "install_buildpack URL", "Add a buildpack to the mason config"
101
+ def install_buildpack(url)
102
+ system("#{@config.bin_path}/mason buildpacks:install #{url}")
103
+ end
104
+
105
+ desc "remove_buildpack NAME", "Remove a buildpack from the mason config"
106
+ def remove_buildpack(name)
107
+ system("#{@config.bin_path}/mason buildpacks:uninstall #{name}")
108
+ end
109
+
110
+ desc "buildpacks", "List the available buildpacks"
111
+ def buildpacks
112
+ system("#{@config.bin_path}/mason buildpacks")
113
+ end
114
+ nt
100
115
  private
101
116
 
102
117
  def setup_dirs
@@ -1,3 +1,3 @@
1
1
  module Dokuen
2
- VERSION = '0.0.5'
2
+ VERSION = '0.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokuen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: