ponyhost 0.3.2 → 0.3.3
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.
- data/README.md +2 -1
- data/bin/ponyhost +7 -6
- data/lib/ponyhost.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -46,6 +46,7 @@ The installation is as simple as:
|
|
46
46
|
$ ponyhost server
|
47
47
|
|
48
48
|
Runs a very basic HTTP server for the current directory on http://localhost:9090
|
49
|
+
You can specify an alternative port with the `-p PORT` option.
|
49
50
|
|
50
51
|
### Destroy ###
|
51
52
|
|
@@ -56,6 +57,6 @@ The installation is as simple as:
|
|
56
57
|
## ToDo ##
|
57
58
|
|
58
59
|
* Implement an autopush command
|
59
|
-
* Implement a robust HTTP server
|
60
60
|
* Support other AWS availability zones
|
61
61
|
* Delete files in bucket on push
|
62
|
+
* .ponyignore
|
data/bin/ponyhost
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'ponyhost'
|
4
|
-
|
4
|
+
DEFAULT_PORT = 9090
|
5
5
|
command = ARGV.shift
|
6
|
-
bucketname = ARGV.shift
|
7
|
-
bucketname = PonyHost.normalize_bucketname(bucketname) if bucketname
|
8
6
|
|
9
7
|
if command == "server"
|
10
|
-
|
11
|
-
|
8
|
+
port = ARGV.shift == "-p" ? ARGV.shift.to_i : DEFAULT_PORT
|
9
|
+
PonyHost.server(port)
|
10
|
+
elsif command == "list" || (["create", "push", "destroy", "show", "version"].include?(command) && (bucketname = ARGV.shift))
|
11
|
+
bucketname = PonyHost.normalize_bucketname(bucketname) if bucketname
|
12
|
+
|
12
13
|
credentials = PonyHost.obtain_credentials
|
13
14
|
begin
|
14
15
|
AWS::S3::Base.establish_connection!({
|
@@ -46,7 +47,7 @@ else
|
|
46
47
|
create [name] Creates a new bucket for your site
|
47
48
|
push [name] Pushes the current directory to the specified bucket/site
|
48
49
|
destroy [name] Removes all files and destroys the bucket
|
49
|
-
server
|
50
|
+
server [-p PORT] Runs a local HTTP server for the current directory. Default Port is #{DEFAULT_PORT}
|
50
51
|
|
51
52
|
Notes: if the name contains no '.' it will be suffixed with the default domain #{PonyHost::DEFAULT_DOMAIN}
|
52
53
|
To use a custom domain you have to set up the DNS correctly:
|
data/lib/ponyhost.rb
CHANGED
@@ -16,7 +16,7 @@ class PonyHost
|
|
16
16
|
S3_CREDENTIAL_FILES = ["~/.ponyhost.yml"]
|
17
17
|
S3_CREDENTIAL_LINK = "https://aws-portal.amazon.com/gp/aws/developer/account/index.html?ie=UTF8&action=access-key"
|
18
18
|
DEFAULT_DOMAIN = "ponyho.st"
|
19
|
-
VERSION = "0.3.
|
19
|
+
VERSION = "0.3.3"
|
20
20
|
class << self
|
21
21
|
|
22
22
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ponyhost
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Johannes Wagener
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-07 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|