hugo 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,16 +4,17 @@ require 'rake'
4
4
  begin
5
5
  require 'jeweler'
6
6
  Jeweler::Tasks.new do |gemspec|
7
- gemspec.add_dependency('amazon-ec2', '= 0.7.5')
8
- gemspec.add_dependency('json', '= 1.2.0')
9
- gemspec.add_dependency('net-ssh', '= 2.0.16')
10
-
11
7
  gemspec.name = "hugo"
12
8
  gemspec.summary = "Deploy Your Rack Apps to Cloud"
13
9
  gemspec.description = "A easy to understand DSL that makes it dirt simple to deploy to the cloud."
14
10
  gemspec.email = "tom@jackhq.com"
15
11
  gemspec.homepage = "http://github.com/twilson63/hugo"
16
12
  gemspec.authors = ["Tom Wilson", "Barrett Little"]
13
+
14
+ gemspec.add_dependency('amazon-ec2', '= 0.7.5')
15
+ gemspec.add_dependency('json', '= 1.2.0')
16
+ gemspec.add_dependency('net-ssh', '= 2.0.16')
17
+ gemspec.files = FileList['spec/*.rb'] + FileList['lib/**/*.rb'] + ['README.rdoc', 'LICENSE', 'VERSION.yml', 'Rakefile']
17
18
  end
18
19
  Jeweler::GemcutterTasks.new
19
20
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hugo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wilson
@@ -52,16 +52,8 @@ extensions: []
52
52
  extra_rdoc_files: []
53
53
 
54
54
  files:
55
- - .DS_Store
56
- - .gitignore
57
- - Gemfile
58
55
  - Rakefile
59
- - VERSION
60
- - config/hugo.yml.example
61
- - example/myhugo.rb
62
- - lib/.DS_Store
63
56
  - lib/hugo.rb
64
- - lib/hugo/.DS_Store
65
57
  - lib/hugo/app.rb
66
58
  - lib/hugo/aws/ec2.rb
67
59
  - lib/hugo/aws/elb.rb
@@ -70,16 +62,6 @@ files:
70
62
  - lib/hugo/cloud.rb
71
63
  - lib/hugo/database.rb
72
64
  - lib/hugo/mixin/params_validate.rb
73
- - readme.md
74
- - spec/.DS_Store
75
- - spec/lib/hugo/app_spec.rb
76
- - spec/lib/hugo/aws/ec2_spec.rb
77
- - spec/lib/hugo/aws/elb_spec.rb
78
- - spec/lib/hugo/aws/rds_spec.rb
79
- - spec/lib/hugo/balancer_spec.rb
80
- - spec/lib/hugo/database_spec.rb
81
- - spec/lib/hugo_spec.rb
82
- - spec/spec.opts
83
65
  - spec/spec_helper.rb
84
66
  has_rdoc: true
85
67
  homepage: http://github.com/twilson63/hugo
data/.DS_Store DELETED
Binary file
data/.gitignore DELETED
@@ -1,12 +0,0 @@
1
- bin/*
2
- vendor/gems/*
3
- !vendor/gems/cache/
4
- !example/myhugo.rb
5
- example/gmms.rb
6
- example/gmms.yml
7
- gmms.rb
8
- oregano.rb
9
- gmms.yml
10
- oregano.yml
11
- eirene.rb
12
- eirene.yml
data/Gemfile DELETED
@@ -1,7 +0,0 @@
1
- gem 'amazon-ec2'
2
- gem 'net-ssh'
3
- gem 'json'
4
-
5
- only :test do
6
- gem 'rspec'
7
- end
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.2
File without changes
data/example/myhugo.rb DELETED
@@ -1,25 +0,0 @@
1
- require '../lib/hugo'
2
-
3
- Hugo do
4
- cloud "client" do
5
- @instances = 2
6
- @application = "example"
7
-
8
- database do
9
- @user = "dbsa"
10
- @pass = "dbpass"
11
- end
12
-
13
- balancer
14
-
15
- @package_list = [{"name"=>"mysql-client"}]
16
- @gem_list = [{"name"=>"rack"}, {"name"=>"rails", "version"=>"2.3.5"}]
17
- @run_list = ["role[web-app]"]
18
-
19
- @github_url = "git@github.com:example"
20
- @privatekey = "-----BEGIN RSA PRIVATE KEY-----\nxxxxxx-------\n-----END RSA PRIVATE KEY-----\n"
21
- @publickey = "ssh-rsa xxxxxxxxx== progger@example.com\n"
22
-
23
- @app_info = { :branch => "master", :migrate => true }
24
- end
25
- end
data/lib/.DS_Store DELETED
Binary file
data/lib/hugo/.DS_Store DELETED
Binary file
data/readme.md DELETED
@@ -1,83 +0,0 @@
1
- # Hugo (Cloud DSL)
2
- <small>A simple dsl to deploy to the cloud</small>
3
-
4
- Currently only supports Amazon Web Services, but will be expanded soon!
5
-
6
- ## Requirements
7
-
8
- First, you need a Amazon AWS Account
9
-
10
- You need to configure you system to contain AWS info in environment variables.
11
-
12
- Make sure you are enabled to generate ELB, RDS, and EC2.
13
-
14
- Make sure you have a keypair generated for you AWS Account!
15
-
16
- ## What does it look like?
17
-
18
- # mycloud.rb
19
- require 'lib/hugo'
20
-
21
- config = YAML.load_file("mycloud.yml")
22
-
23
- Hugo do
24
- cloud "mycloud" do
25
- balancer
26
-
27
- database "sample_app_production" do
28
- server "company_server"
29
- user "admin"
30
- password "admin"
31
- end
32
-
33
- app "sample_app" do
34
- key_name "my-keypair"
35
-
36
- cookbook "git://github.com/twilson63/hugo-cookbooks.git"
37
- key_pair_file "~/.ec2/my-keypair"
38
- port "8080"
39
- github_url "git@github.com:twilson63"
40
- privatekey config["github"]["privatekey"]
41
- publickey config["github"]["publickey"]
42
- package_list config["package_list"]
43
- gem_list config["gem_list"]
44
- run_list ["role[web-base]", "role[web-app]"]
45
-
46
- deploy_info :web_server_name => "sample_app.jackhq.com",
47
- :restart_command => "gem bundle && touch tmp/restart.txt"
48
-
49
- servers 2
50
-
51
- end
52
-
53
- deploy
54
-
55
- print
56
- end
57
-
58
- ---
59
-
60
- ## What about the config file?
61
-
62
- # mycloud.yml
63
-
64
- github:
65
- url: XXXX
66
- publickey: XXX
67
- privatekey: XXX
68
-
69
- package_list:
70
- - name: mysql-client
71
- - name: libmysqlclient15-dev
72
- - name: libmysql-ruby1.8
73
- - name: libexpat1
74
- - name: libxml2
75
- - name: libxml2-dev
76
- - name: libxslt1-dev
77
- - name: sqlite3
78
- - name: libsqlite3-dev
79
-
80
- gem_list:
81
- - name: bundler
82
-
83
-
data/spec/.DS_Store DELETED
Binary file
data/spec/spec.opts DELETED
@@ -1,4 +0,0 @@
1
- --colour
2
- --format progress
3
- --loadby mtime
4
- --reverse