listrophy-suprails 0.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/suprails.rb ADDED
@@ -0,0 +1,47 @@
1
+ #
2
+ # Suprails: The customizable wrapper to the rails command
3
+ #
4
+ # Copyright 2008 Bradley Grzesiak
5
+ # This file is part of Suprails.
6
+ #
7
+ # Suprails is free software: you can redistribute it and/or modify
8
+ # it under the terms of the GNU General Public License as published by
9
+ # the Free Software Foundation, either version 3 of the License, or
10
+ # (at your option) any later version.
11
+ #
12
+ # Suprails is distributed in the hope that it will be useful,
13
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ # GNU General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU General Public License
18
+ # along with Suprails. If not, see <http://www.gnu.org/licenses/>.
19
+ #
20
+
21
+ # require 'rubygems'
22
+ require File.dirname(__FILE__) + '/runner'
23
+
24
+ class Suprails
25
+
26
+
27
+ def initialize(app_name = "")
28
+ @app_name = app_name
29
+ @run_file = ""
30
+ end
31
+
32
+ def app_name=(val)
33
+ @app_name = val
34
+ end
35
+ def app_name
36
+ @app_name
37
+ end
38
+
39
+ def create_project
40
+ Runner.new(@app_name).run
41
+ end
42
+
43
+ def to_s
44
+ "Rails appname: #{@app_name}\n"
45
+ end
46
+
47
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: listrophy-suprails
3
+ version: !ruby/object:Gem::Version
4
+ version: "0.1"
5
+ platform: ruby
6
+ authors:
7
+ - Bradley Grzesiak
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2008-10-18 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rails
17
+ version_requirement:
18
+ version_requirements: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ version:
24
+ description: This project is intended to be a replacement for the "rails" command. It does not replace the rails framework but rather provides a starting point for a rails application far beyond what the "rails" command provides. During execution, in fact, the suprails command calls the rails command.
25
+ email: listrophy@gmail.com
26
+ executables:
27
+ - suprails
28
+ extensions: []
29
+
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - README
34
+ - COPYING
35
+ - TODO
36
+ - lib/db.rb
37
+ - lib/facet.rb
38
+ - lib/gems.rb
39
+ - lib/runner.rb
40
+ - lib/suprails.rb
41
+ - facets/haml.rb
42
+ - bin/suprails
43
+ - .suprails.example
44
+ has_rdoc: false
45
+ homepage: http://github.com/listrophy/suprails
46
+ post_install_message:
47
+ rdoc_options: []
48
+
49
+ require_paths:
50
+ - lib
51
+ required_ruby_version: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: "0"
56
+ version:
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: "0"
62
+ version:
63
+ requirements: []
64
+
65
+ rubyforge_project:
66
+ rubygems_version: 1.2.0
67
+ signing_key:
68
+ specification_version: 2
69
+ summary: Suprails provides a wrapper to the rails command
70
+ test_files: []
71
+