Permalink
Browse files

Initial commit.

  • Loading branch information...
0 parents commit 3dac0bb9446f87aaf2fcb5c5d8b82a02af5a50e4 Alan Johnson committed Nov 2, 2008
@@ -0,0 +1,20 @@
+Copyright (c) 2008 [name of plugin creator]
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,13 @@
+ControlCenter
+=============
+
+Introduction goes here.
+
+
+Example
+=======
+
+Example goes here.
+
+
+Copyright (c) 2008 [name of plugin creator], released under the MIT license
@@ -0,0 +1,22 @@
+require 'rake'
+require 'rake/testtask'
+require 'rake/rdoctask'
+
+desc 'Default: run unit tests.'
+task :default => :test
+
+desc 'Test the control_center plugin.'
+Rake::TestTask.new(:test) do |t|
+ t.libs << 'lib'
+ t.pattern = 'test/**/*_test.rb'
+ t.verbose = true
+end
+
+desc 'Generate documentation for the control_center plugin.'
+Rake::RDocTask.new(:rdoc) do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = 'ControlCenter'
+ rdoc.options << '--line-numbers' << '--inline-source'
+ rdoc.rdoc_files.include('README')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
@@ -0,0 +1 @@
+# Include hook code here
@@ -0,0 +1,25 @@
+# installs our control center stuff
+
+# get some basic vars set up
+resources_dir = File.dirname(__FILE__)
+
+# print a pretty message
+puts
+puts "Installing Control Center..."
+
+# copy our files into the project
+puts "Copying stylesheet..."
+File.copy(resources_dir + "/control_center.css",
+ RAILS_DIR + "/public/stylesheets/control_center.css")
+
+puts "Copying layout..."
+File.copy(resources_dir + "/control_center.html.erb",
+ RAILS_DIR + "/app/views/layouts/control_center.html.erb")
+
+puts "Copying initializer..."
+File.copy(resources_dir + "/control_center.html.erb",
+ RAILS_DIR + "/config/initializers/control_center.rb")
+
+# print out the readme
+puts # readme content gets printed here
+puts
@@ -0,0 +1,5 @@
+class ControlCenter
+
+ cattr_accessor :header_links
+ cattr_accessor :tabs
+end
No changes.
No changes.
@@ -0,0 +1,15 @@
+# This is an initializer script for Control Center. Customize it to your
+# preferences
+
+ControlCenter.header_links = {
+ "Some" => "/some",
+ "Link" => "/link"
+}
+
+ControlCenter.tabs = {
+ "Tab1" => "/tab1",
+ "Tab2" => "/tab2",
+ "Tab3" => "/tab3"
+}
+
+ControlCenter.theme_color = "#0033CC"
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :control_center do
+# # Task goes here
+# end
@@ -0,0 +1,8 @@
+require 'test/unit'
+
+class ControlCenterTest < Test::Unit::TestCase
+ # Replace this with your real tests.
+ def test_this_plugin
+ flunk
+ end
+end
@@ -0,0 +1,2 @@
+# Uninstall hook code here
+puts "Thanks for using Control Center. Be sure to remove the initializer, stylesheet, and layout."

0 comments on commit 3dac0bb

Please sign in to comment.