hera 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source :rubygems
2
+ source "http://rubygems.org"
3
+
4
+ gem "growl_notify", "~> 0.0.1"
5
+ gem "guard", "~> 0.7.0"
6
+ gem "guard-rake", "~> 0.0.1"
7
+ gem "haml", "~> 3.1.3"
8
+ gem "jammit", "~> 0.6.3"
9
+ gem "jekyll", "~> 0.11.0"
10
+ gem "rb-fsevent", "~> 0.4.3.1"
11
+ gem "sass", "~> 3.1.7"
data/bin/hera CHANGED
@@ -1 +1,72 @@
1
- puts "Hera, a progressive, rapid deployment, static site generating tool."
1
+ #!/usr/bin/env ruby
2
+
3
+ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
4
+
5
+ help = <<HELP
6
+ Hera, a progressive, rapid deployment, static site generating tool.
7
+
8
+ Basic Command Line Usage:
9
+ hera --install # Installs dependencies.
10
+ hera --init # Initializes the hera structure.
11
+ hera --watch # Starts the haml and sass watcher.
12
+ hera --generate # Generates the jekyll site.
13
+ hera --deploy # Deploys the site to your server.
14
+
15
+ HELP
16
+
17
+ require 'optparse'
18
+ require 'hera'
19
+ require 'init_hera'
20
+ require 'install_hera'
21
+ require 'watch_hera'
22
+ require 'generate_hera'
23
+ require 'deploy_hera'
24
+
25
+ exec = {}
26
+ options = {}
27
+ opts = OptionParser.new do |opts|
28
+ opts.banner = help
29
+
30
+ opts.on("--deploy") do
31
+ options['deploy'] = true
32
+ end
33
+
34
+ opts.on("--generate") do
35
+ options['generate'] = true
36
+ end
37
+
38
+ opts.on("--install") do
39
+ options['install'] = true
40
+ end
41
+
42
+ opts.on("--init") do
43
+ options['init'] = true
44
+ end
45
+
46
+ opts.on("--watch") do
47
+ options['watch'] = true
48
+ end
49
+
50
+ end
51
+
52
+ opts.parse!
53
+
54
+ if options['deploy']
55
+ deploy_hera = DeployHera.new
56
+ end
57
+
58
+ if options['generate']
59
+ generate_hera = GenerateHera.new
60
+ end
61
+
62
+ if options['install']
63
+ install_hera = InstallHera.new
64
+ end
65
+
66
+ if options['init']
67
+ init_hera = InitHera.new
68
+ end
69
+
70
+ if options['watch']
71
+ watch_hera = WatchHera.new
72
+ end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class DeployHera
4
+ def initialize
5
+ puts "Deploy Hera."
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class GenerateHera
4
+ def initialize
5
+ puts "Generate Hera."
6
+ end
7
+ end
data/lib/hera.rb CHANGED
@@ -1,5 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  class Hera
2
- def self.hera
3
- puts "Hera!"
4
+ def initialize
5
+ print "Hera!"
4
6
  end
5
7
  end
data/lib/init_hera.rb ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class InitHera
4
+ def initialize
5
+ puts "Init Hera."
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class InstallHera
4
+ def initialize
5
+ system "bundle install"
6
+ end
7
+ end
data/lib/watch_hera.rb ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ class WatchHera
4
+ def initialize
5
+ puts "Watch Hera."
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -19,6 +19,12 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - lib/hera.rb
22
+ - lib/init_hera.rb
23
+ - lib/install_hera.rb
24
+ - lib/watch_hera.rb
25
+ - lib/generate_hera.rb
26
+ - lib/deploy_hera.rb
27
+ - Gemfile
22
28
  - bin/hera
23
29
  homepage: http://github.com/connatser/hera
24
30
  licenses: []
@@ -43,5 +49,5 @@ rubyforge_project:
43
49
  rubygems_version: 1.8.10
44
50
  signing_key:
45
51
  specification_version: 3
46
- summary: Hera!
52
+ summary: Hera
47
53
  test_files: []