lazyportal 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "nokogiri"
4
+ gem "sass", "3.1.0.alpha.256"
data/Gemfile.lock ADDED
@@ -0,0 +1,12 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ nokogiri (1.4.4)
5
+ sass (3.1.0.alpha.256)
6
+
7
+ PLATFORMS
8
+ ruby
9
+
10
+ DEPENDENCIES
11
+ nokogiri
12
+ sass (= 3.1.0.alpha.256)
data/LICENSE.txt ADDED
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2011 Jacob Lichner and contributors
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,21 @@
1
+ To Get Started
2
+ ==============
3
+
4
+ In your project directory, run:
5
+
6
+ $ lazy
7
+
8
+ + Creates and prepopulates a hidden .lazy.yaml config file (allowing for overrides)
9
+ + Creates a Rakefile (loads rake tasks from lazy's source)
10
+
11
+ Tasks
12
+ =====
13
+
14
+ $ rake -T
15
+
16
+ Lists all available tasks along with brief descriptions.
17
+
18
+ $ rake [task]:help
19
+
20
+ Prints a detailed description about a given task.
21
+
data/TODO.txt ADDED
@@ -0,0 +1,71 @@
1
+ - make into a gem
2
+ - write tab completion script for thor command
3
+
4
+ TASKS
5
+ - copies theme files to tomcat
6
+ - uses rysnc?
7
+ - watches css and copies to tomcat on change
8
+ - creates new javascript file in skins/commons
9
+ - creates file with default fluid template code and adds line to SKIN_ROOT/skin.xml
10
+ - spin up uportal by version
11
+ - fetch, download and unpack uportal
12
+ - fetches, downloads, and unpack tomcat
13
+ - configures tomcat and uportal instances
14
+ - create theme
15
+ - ask for theme name
16
+ - generate and edit necessary files and directories
17
+ - copy existing theme (or generate a better default theme to work with...)
18
+ - universality.xsl edit institution variable to initialize new theme
19
+ - add skin block to skinlist.xml
20
+ - generate sass files and directories (optional)
21
+ - stand-alone sass generator
22
+ - updates tomcat path in build.properties (in case you move your project folder on your local system)
23
+ - configure web.xml - comment out filter mapping for js and css
24
+ - generate .gitignore file
25
+ - get IP Address (for testing in Windows VM)
26
+ - create a variation (refer to Sault College project)
27
+
28
+ CODE
29
+ Generate the config method definitions in a module and then include that module in your classes. Create a Project class at the top along with a class for Tomcat, Liferay and Uportal.
30
+
31
+ SCRIPT
32
+ Write a bash script to install ant 1.7.1, maven, subversion, and any other uPortal dependencies. (Maybe use capistrano?)
33
+
34
+ HELP PAGES
35
+ Generate a namespace for each task containing a help task that prints that tasks help text. ie $ rake [task]:help
36
+
37
+ README NOTES
38
+
39
+ New Project
40
+ ===========
41
+
42
+ $ lazy new
43
+
44
+ + Checks out uPortal 3.2.x (patches)
45
+ + Removes .svn files
46
+ + Downloads and unpacks tomcat 6.x tarball (same directory, side by side)
47
+ + Configures tomcat (server.xml, catalina.properties)
48
+ + Configures uPortal (build.properties)
49
+ + Generates Rakefile (loads rake tasks from lazy's source)
50
+
51
+ #### Optional
52
+
53
+ --svn [url]
54
+
55
+ Specify a uPortal repository.
56
+
57
+ --leave-repo
58
+
59
+ Do not delete the .svn files. (If you plan on committing back to uPortal proper, for instance.) Default if using --svn.
60
+
61
+ --tomcat [path_to_tomcat]
62
+
63
+ Use an existing tomcat instead of fetching a new one.
64
+
65
+ --liferay
66
+
67
+ + Downloads liferay plugins SDK from confluence
68
+ + Downloads the tomcat bundle
69
+ + Hot-deploys the license key XML file
70
+ + Turns on developer mode
71
+ + Loads Liferay-specific rake tasks
@@ -0,0 +1,14 @@
1
+ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/lib'))
2
+ require 'lazyportal'
3
+ require 'rake'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'lazyportal'
7
+ s.version = Lazyportal::VERSION
8
+ s.summary = "A suite of rake tasks for skinning uPortal and Liferay"
9
+ s.author = "Jacob Lichner"
10
+ s.email = "jacob.d.lichner@gmail.com"
11
+
12
+ s.executables = [ 'lazy' ]
13
+ s.files = FileList[ '[A-Z]*', 'lib/**/*', 'lazyportal.gemspec' ]
14
+ end
@@ -0,0 +1,18 @@
1
+ module Lazyportal::CLI
2
+
3
+ def generate_tasks
4
+ tasks = %{
5
+ require 'rubygems'
6
+ require './lib/lazyportal'
7
+
8
+ include Lazyportal::Tasks
9
+
10
+ Lazyportal::Tasks.load_tasks
11
+ }
12
+
13
+ File.open("Rakefile", "w+") do |f|
14
+ f.write(tasks)
15
+ end
16
+ end
17
+
18
+ end
@@ -0,0 +1,4 @@
1
+ desc "Say hello."
2
+ task :hello do
3
+ puts "Hello World from Lazyportal."
4
+ end
@@ -0,0 +1,7 @@
1
+ module Lazyportal::Tasks
2
+
3
+ def load_tasks
4
+ Dir[File.dirname(__FILE__) + '/tasks.rake'].each { |f| load f }
5
+ end
6
+
7
+ end
data/lib/lazyportal.rb ADDED
@@ -0,0 +1,20 @@
1
+ module Lazyportal
2
+
3
+ # current version of lazyportal
4
+ VERSION = '0.0.2'
5
+
6
+ end
7
+
8
+ # libraries
9
+ require 'rake'
10
+
11
+ # gems
12
+ require 'rubygems'
13
+ require 'bundler/setup'
14
+ Bundler.require(:default)
15
+
16
+ # lazyportal
17
+ $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
18
+
19
+ require 'lazyportal/tasks'
20
+ require 'lazyportal/cli'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazyportal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -18,6 +18,16 @@ executables:
18
18
  extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
+ - Gemfile
22
+ - Gemfile.lock
23
+ - LICENSE.txt
24
+ - README.md
25
+ - TODO.txt
26
+ - lib/lazyportal/cli.rb
27
+ - lib/lazyportal/tasks.rake
28
+ - lib/lazyportal/tasks.rb
29
+ - lib/lazyportal.rb
30
+ - lazyportal.gemspec
21
31
  - bin/lazy
22
32
  homepage:
23
33
  licenses: []
@@ -33,7 +43,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
33
43
  version: '0'
34
44
  segments:
35
45
  - 0
36
- hash: 120625635098503138
46
+ hash: 2342212308255985800
37
47
  required_rubygems_version: !ruby/object:Gem::Requirement
38
48
  none: false
39
49
  requirements: