dokkufy 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
  SHA1:
3
- metadata.gz: 59f7a740715bc7ce0b69d757c24f0701a226c69e
4
- data.tar.gz: 12b5d9e0e5a1f3669420a7bd2e07b922657521a6
3
+ metadata.gz: 55b1689044818f6438e0f573ced322647aeb62b8
4
+ data.tar.gz: e7c920226ce9206a632f5103ba07f9d7e60a5337
5
5
  SHA512:
6
- metadata.gz: 79a9f3d72e8d00cc7760f695937a27371113ad3595ff861c20a1f9f82b0160ec8d039cd043d0bb9a135130c136b7df414ab577e8c8d135b03139db80c9196d67
7
- data.tar.gz: 5dc10424069dacfc31619fa6aa14ea28f3171cc8b5e89ae86e3bdffb3e34f87e81f7814415b6251a6522cb6768e89b6731d7d0192ab554382d97b6db363b0acb
6
+ metadata.gz: 75b7ef85d00f9982db97106641e584376a36b09a7f6d19fb07fba473697d522a8c9593807053bb5a8e448ce50d0ec620d659b19113b630573ad7d7e9abd5e9a9
7
+ data.tar.gz: 9e48af20386315d2ff08824c38e07c9fd3097cca29471c84a348f96039b6e1798d9ccacaa78200775332c8ea5b957c2b38ea4d6835c4affe844493e26a66b0e2
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 Cristiano Betta <cbetta@gmail.com>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -0,0 +1,46 @@
1
+ # Dokkufy
2
+
3
+ A [Dokku](https://github.com/progrium/dokku) toolbelt inspired by the [Heroku toolbelt](https://toolbelt.heroku.com/)
4
+
5
+ ## Planned commands
6
+
7
+ ```sh
8
+ dokkufy <command>
9
+ help shows this list
10
+ server installs Dokku on a Ubuntu 12.04 or 14.04 server
11
+ server:upgrade upgrades a Dokku server
12
+ plugins shows a list of Dokku plugins
13
+ plugins:install installs a plugin on the server
14
+ app adds a dokku remote for a server to an app
15
+
16
+ dokku <command> runs dokku commands on the server attached to this app
17
+ ```
18
+
19
+ ## Implemented commands
20
+
21
+ ### dokkufy server
22
+
23
+ ```sh
24
+ dokkufy server <hostname> <username> <domain>
25
+ ```
26
+
27
+ Installs dokku on server at IP or Hostname `<hostname>`, using user `<username>` to install the software.
28
+
29
+ It also sets up the app on domain <domain>, resulting in all apps being served as a subdomain of that domain.
30
+
31
+ ## Release notes
32
+
33
+ * **0.0.2** Added `server` command
34
+ * **0.0.1** Gem skeleton
35
+
36
+ ## Contributing
37
+
38
+ 1. Fork it
39
+ 2. Create your feature branch (git checkout -b my-new-feature)
40
+ 3. Commit your changes (git commit -am 'Add some feature')
41
+ 4. Push to the branch (git push origin my-new-feature)
42
+ 5. Create new Pull Request
43
+
44
+ ## License
45
+
46
+ See [LICENSE](https://github.com/cbetta/dokkufy/blob/master/LICENSE)
data/bin/dokkufy CHANGED
@@ -8,17 +8,20 @@ Commander.configure do
8
8
  program :description, 'An interactive script to enable Dokku on a server'
9
9
  program :help, 'Author', 'Cristiano Betta <cbetta@gmail.com>'
10
10
 
11
- command :'install' do |c|
12
- c.action do
13
- host = ask('Server hostname or IP: ')
14
- username = ask('Username on server: ')
11
+ command :'server' do |c|
12
+ c.syntax = 'dokkufy server <hostname> <username> <domain>'
13
+ c.description = "Installs Dokku on a Ubuntu 12.04 or 14.04 server"
14
+ c.option '--version', Float, 'Dokku version'
15
+ c.action do |args, options|
16
+ hostname = args[0] || ask('Server hostname or IP: ')
17
+ username = args[1] || ask('Username on server: ')
18
+ domain = args[2] || ask('Desired root domain (e.g. example.com): ')
19
+ version = options.version.nil? ? 'master' : "v#{options.version}"
15
20
 
16
- server = Dokkufy::Server.new(host, username)
21
+ server = Dokkufy::Server.new(hostname, username)
17
22
  server.ensure_passwordless_sudo
18
- server.install_dokku
19
-
20
- hostname = ask('Desired hostname (e.g. example.com): ')
21
- server.configure_vhost(hostname)
23
+ server.install_dokku(version)
24
+ server.configure_vhost(domain)
22
25
  server.setup_key
23
26
  end
24
27
  end
data/dokkufy.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require "dokkufy/version"
3
+ require "dokkufy/info"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "dokkufy"
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Cristiano Betta"]
9
9
  s.email = ["cbetta@gmail.com"]
10
10
  s.homepage = "http://github.com/cbetta/dokkufy"
11
- s.summary = "An interactive script to enable Dokku on a server"
12
- s.description = "An interactive script to enable Dokku on a server"
11
+ s.summary = Dokkufy::DESCRIPTION
12
+ s.description = Dokkufy::DESCRIPTION
13
13
  s.license = 'MIT'
14
14
 
15
15
  s.files = `git ls-files`.split("\n")
@@ -0,0 +1,5 @@
1
+ module Dokkufy
2
+ VERSION = "0.0.2" unless defined? Dokkufy::VERSION
3
+ NAME = "dokkufy" unless defined? Dokkufy::NAME
4
+ DESCRIPTION = "A Dokku toolchain" unless defined? Dokkufy::DESCRIPTION
5
+ end
data/lib/dokkufy.rb CHANGED
@@ -1,7 +1,6 @@
1
- require "dokkufy/version"
1
+ require "dokkufy/info"
2
2
  require "dokkufy/utils"
3
3
  require "dokkufy/server"
4
4
 
5
5
  module Dokkufy
6
-
7
6
  end
@@ -6,4 +6,4 @@ if [ "$VERSION" == "$OLD_VERSION" ]; then
6
6
  sudo apt-get install -y python-software-properties
7
7
  fi
8
8
 
9
- wget -qO- https://raw.github.com/progrium/dokku/v0.2.3/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
9
+ wget -qO- https://raw.github.com/progrium/dokku/$OPTION/bootstrap.sh | sudo DOKKU_TAG=v0.2.3 bash
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dokkufy
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
  - Cristiano Betta
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- description: An interactive script to enable Dokku on a server
27
+ description: A Dokku toolchain
28
28
  email:
29
29
  - cbetta@gmail.com
30
30
  executables:
@@ -35,14 +35,15 @@ files:
35
35
  - ".gitignore"
36
36
  - Gemfile
37
37
  - Gemfile.lock
38
+ - LICENSE
38
39
  - README.md
39
40
  - Rakefile
40
41
  - bin/dokkufy
41
42
  - dokkufy.gemspec
42
43
  - lib/dokkufy.rb
44
+ - lib/dokkufy/info.rb
43
45
  - lib/dokkufy/server.rb
44
46
  - lib/dokkufy/utils.rb
45
- - lib/dokkufy/version.rb
46
47
  - scripts/configure_vhost.sh
47
48
  - scripts/ensure_passwordless_sudo.sh
48
49
  - scripts/install_dokku.sh
@@ -69,5 +70,5 @@ rubyforge_project:
69
70
  rubygems_version: 2.2.2
70
71
  signing_key:
71
72
  specification_version: 4
72
- summary: An interactive script to enable Dokku on a server
73
+ summary: A Dokku toolchain
73
74
  test_files: []
@@ -1,4 +0,0 @@
1
- module Dokkufy
2
- VERSION = "0.0.1" unless defined? Dokkufy::VERSION
3
- NAME = "dokkufy"
4
- end