abaddon 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/abaddon.gemspec +16 -0
- data/bin/abaddon +4 -0
- data/lib/abaddon.rb +35 -0
- data/lib/shared/config/compass.rb +24 -0
- data/lib/templates/mockup.rb +15 -0
- metadata +51 -0
data/abaddon.gemspec
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = 'abaddon'
|
3
|
+
s.version = '0.0.1'
|
4
|
+
s.date = '2011-10-29'
|
5
|
+
s.summary = "Abaddon"
|
6
|
+
s.description = "A library that creates project structures."
|
7
|
+
s.authors = ["Arturo Puente"]
|
8
|
+
s.email = ["arturopuentevc@gmail.com"]
|
9
|
+
s.homepage = "http://github.com/arturopuente"
|
10
|
+
s.executables = "abaddon"
|
11
|
+
s.files =
|
12
|
+
["abaddon.gemspec",
|
13
|
+
"lib/abaddon.rb",
|
14
|
+
"lib/templates/mockup.rb",
|
15
|
+
"lib/shared/config/compass.rb"]
|
16
|
+
end
|
data/bin/abaddon
ADDED
data/lib/abaddon.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
module Abaddon
|
2
|
+
extend self
|
3
|
+
|
4
|
+
def templates
|
5
|
+
%w[mockup]
|
6
|
+
end
|
7
|
+
|
8
|
+
def load(template)
|
9
|
+
path = File.dirname(File.expand_path(__FILE__))
|
10
|
+
require "#{path}/templates/#{template}.rb"
|
11
|
+
end
|
12
|
+
|
13
|
+
class Runner
|
14
|
+
|
15
|
+
def initialize(args)
|
16
|
+
if args.size > 0
|
17
|
+
args.each do |template|
|
18
|
+
if Abaddon.templates.include? template
|
19
|
+
Abaddon.load template
|
20
|
+
else
|
21
|
+
puts "Oops! I can't do that (yet). Available templates are:"
|
22
|
+
Abaddon.templates.each { |s| print s }
|
23
|
+
puts
|
24
|
+
end
|
25
|
+
end
|
26
|
+
else
|
27
|
+
puts "Aviable templates are:"
|
28
|
+
Abaddon.templates.each { |s| print s }
|
29
|
+
puts
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
|
3
|
+
# Set this to the root of your project when deployed:
|
4
|
+
http_path = "/"
|
5
|
+
css_dir = "stylesheets"
|
6
|
+
sass_dir = "sass"
|
7
|
+
images_dir = "images"
|
8
|
+
javascripts_dir = "javascripts"
|
9
|
+
|
10
|
+
# You can select your preferred output style here (can be overridden via the command line):
|
11
|
+
# output_style = :expanded or :nested or :compact or :compressed
|
12
|
+
# output_style = :compressed
|
13
|
+
|
14
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
15
|
+
# relative_assets = true
|
16
|
+
|
17
|
+
# To disable debugging comments that display the original location of your selectors. Uncomment:
|
18
|
+
# line_comments = false
|
19
|
+
|
20
|
+
# If you prefer the indented syntax, you might want to regenerate this
|
21
|
+
# project again passing --syntax sass, or you can uncomment this:
|
22
|
+
# preferred_syntax = :sass
|
23
|
+
# and then run:
|
24
|
+
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
|
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'FileUtils'
|
2
|
+
|
3
|
+
directories = %w[javascripts stylesheets coffeescripts sass]
|
4
|
+
files = %w[index.html config.rb]
|
5
|
+
|
6
|
+
directories.each { |d| FileUtils.mkdir "./#{d}" unless File.directory? d }
|
7
|
+
files.each { |f| FileUtils.touch "./#{f}" unless File.exists? f }
|
8
|
+
|
9
|
+
path = File.dirname(File.expand_path(__FILE__))
|
10
|
+
compass_config = File.read "#{path}/../shared/config/compass.rb"
|
11
|
+
filename = "config.rb"
|
12
|
+
|
13
|
+
if File.exists? filename
|
14
|
+
File.open(filename, "w") { |f| f.write compass_config }
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: abaddon
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Arturo Puente
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-10-29 00:00:00.000000000Z
|
13
|
+
dependencies: []
|
14
|
+
description: A library that creates project structures.
|
15
|
+
email:
|
16
|
+
- arturopuentevc@gmail.com
|
17
|
+
executables:
|
18
|
+
- abaddon
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- abaddon.gemspec
|
23
|
+
- lib/abaddon.rb
|
24
|
+
- lib/templates/mockup.rb
|
25
|
+
- lib/shared/config/compass.rb
|
26
|
+
- bin/abaddon
|
27
|
+
homepage: http://github.com/arturopuente
|
28
|
+
licenses: []
|
29
|
+
post_install_message:
|
30
|
+
rdoc_options: []
|
31
|
+
require_paths:
|
32
|
+
- lib
|
33
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
+
none: false
|
35
|
+
requirements:
|
36
|
+
- - ! '>='
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
45
|
+
requirements: []
|
46
|
+
rubyforge_project:
|
47
|
+
rubygems_version: 1.8.11
|
48
|
+
signing_key:
|
49
|
+
specification_version: 3
|
50
|
+
summary: Abaddon
|
51
|
+
test_files: []
|