flak 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. data/.gitignore +1 -0
  2. data/.yardoc/checksums +28 -0
  3. data/.yardoc/objects/root.dat +0 -0
  4. data/.yardoc/proxy_types +0 -0
  5. data/.yardopts +1 -0
  6. data/Architecture.md +152 -0
  7. data/Documenting.md +2 -0
  8. data/MayaModules.md +2 -0
  9. data/README.md +173 -0
  10. data/flak.gemspec +6 -3
  11. data/lib/core_ext/hash.rb +82 -0
  12. data/lib/core_ext/string.rb +41 -0
  13. data/lib/flak.rb +20 -12
  14. data/lib/flak/rake/errors.rb +28 -0
  15. data/lib/flak/rake/file_actions.rb +70 -0
  16. data/lib/flak/rake/os.rb +18 -0
  17. data/lib/flak/rake/target.rb +47 -69
  18. data/lib/flak/rake/templates/cpp.rb +211 -0
  19. data/lib/flak/rake/templates/delight.rb +168 -0
  20. data/lib/flak/rake/templates/doc.rb +106 -0
  21. data/lib/flak/rake/templates/environment.rb +189 -0
  22. data/lib/flak/rake/templates/gl.rb +20 -0
  23. data/lib/flak/rake/templates/mac.rb +29 -0
  24. data/lib/flak/rake/templates/max.rb +22 -0
  25. data/lib/flak/rake/templates/maya.rb +172 -0
  26. data/lib/flak/rake/templates/maya_app.rb +97 -0
  27. data/lib/flak/rake/templates/maya_plugin.rb +93 -0
  28. data/lib/flak/rake/templates/merge_engine.rb +45 -0
  29. data/lib/flak/rake/templates/nuke.rb +60 -0
  30. data/lib/flak/rake/templates/release.rb +101 -0
  31. data/lib/flak/rake/templates/shell.rb +54 -0
  32. data/lib/flak/thor/cli.rb +5 -0
  33. data/lib/flak/thor/generate.rb +88 -144
  34. data/lib/flak/thor/target_file.rb +36 -17
  35. data/lib/flak/thor/templates/INSTALL.tt +3 -3
  36. data/lib/flak/thor/templates/Rakefile.tt +4 -2
  37. data/lib/flak/thor/templates/{cpp.tt → config/cpp.yml.tt} +6 -8
  38. data/lib/flak/thor/templates/{delight.tt → config/delight.yml.tt} +1 -1
  39. data/lib/flak/thor/templates/{doc.tt → config/doc.yml.tt} +0 -0
  40. data/lib/flak/thor/templates/{env.tt → config/environment.yml.tt} +6 -7
  41. data/lib/flak/thor/templates/{gl.tt → config/gl.yml.tt} +0 -0
  42. data/lib/flak/thor/templates/{mac.tt → config/mac.yml.tt} +0 -0
  43. data/lib/flak/thor/templates/{max.tt → config/max.yml.tt} +0 -0
  44. data/lib/flak/thor/templates/{maya.tt → config/maya.yml.tt} +9 -1
  45. data/lib/flak/thor/templates/{maya_app.tt → config/maya_app.yml.tt} +0 -2
  46. data/lib/flak/thor/templates/{maya_plugin.tt → config/maya_plugin.yml.tt} +0 -2
  47. data/lib/flak/thor/templates/config/nuke.yml.tt +3 -0
  48. data/lib/flak/thor/templates/config/release.yml.tt +3 -0
  49. data/lib/flak/thor/templates/config/shell.yml.tt +1 -0
  50. data/lib/flak/thor/templates/doc/content/install_guide.txt.tt +71 -25
  51. data/lib/flak/thor/templates/maya_plugin_cpp.tt +37 -0
  52. data/lib/flak/thor/templates/name_cpp.tt +6 -0
  53. data/lib/flak/thor/templates/name_h.tt +34 -0
  54. data/lib/flak/thor/templates/product.sh.tt +2 -2
  55. data/lib/flak/thor/wizard.rb +28 -15
  56. data/lib/flak/version.rb +1 -1
  57. data/target.jpg +0 -0
  58. metadata +127 -94
  59. data/README.textile +0 -59
  60. data/lib/flak/rake/base.rb +0 -316
  61. data/lib/flak/rake/cpp.rb +0 -139
  62. data/lib/flak/rake/delight.rb +0 -121
  63. data/lib/flak/rake/doc.rb +0 -69
  64. data/lib/flak/rake/gl.rb +0 -10
  65. data/lib/flak/rake/mac.rb +0 -23
  66. data/lib/flak/rake/max.rb +0 -29
  67. data/lib/flak/rake/maya.rb +0 -142
  68. data/lib/flak/rake/maya_app.rb +0 -45
  69. data/lib/flak/rake/maya_plugin.rb +0 -47
  70. data/lib/flak/rake/mod.rb +0 -46
  71. data/lib/flak/rake/nuke.rb +0 -29
  72. data/lib/flak/thor/templates/mod.tt +0 -0
  73. data/lib/flak/thor/templates/nuke.tt +0 -2
@@ -1,45 +0,0 @@
1
-
2
-
3
- module Flak
4
-
5
- module MayaApp
6
-
7
- def self.resolve_settings( existing_settings )
8
-
9
- f = existing_settings[:root] + '/config/maya_app.yml'
10
- h =Flak::Base.flatten_settings(f,existing_settings[:configuration], existing_settings[:os] )
11
-
12
- lib_path = File.join(existing_settings[:maya_location], h[:maya_relative_lib_path])
13
-
14
- h[:lib_paths] = [ lib_path ]
15
-
16
-
17
- more_linker_opts = []
18
- case existing_settings[:os]
19
- when /linux_64/
20
- h[:include_paths] = [ File.join(existing_settings[:maya_location], "include" ) ]
21
- more_linker_opts = ["-Wl,-rpath,#{lib_path}"]
22
- when /darwin/
23
- more_linker_opts = ["-Wl,-executable_path,#{lib_path}"]
24
- h[:include_paths] = [ File.join(existing_settings[:maya_location],"devkit", "include" ) ]
25
- when /win_64/
26
- h[:include_paths] = [ File.join(existing_settings[:maya_location], "include" ) ]
27
- end
28
-
29
- h[:linker_options] ||= []
30
- h[:linker_options] |= more_linker_opts
31
-
32
-
33
- h[:compiler_options] |= [
34
- "-D\"PLUGIN_VERSION=\\\"#{existing_settings[:product_revision]}\\\"\"",
35
- "-D\"PLUGIN_VENDOR=\\\"#{existing_settings[:author_name].gsub(' ','')}\\\"\"",
36
- "-D\"MAYA_VERSION=\\\"#{existing_settings[:maya_version]}\\\"\""
37
- ]
38
-
39
- h
40
- end
41
-
42
- end
43
-
44
- end
45
-
@@ -1,47 +0,0 @@
1
-
2
-
3
- module Flak
4
-
5
-
6
- module MayaPlugin
7
-
8
-
9
- def self.resolve_settings( existing_settings )
10
-
11
-
12
- f = existing_settings[:root] + '/config/maya_plugin.yml'
13
- h =Flak::Base.flatten_settings(f,existing_settings[:configuration], existing_settings[:os] )
14
-
15
-
16
- lib_path = File.join(existing_settings[:maya_location], h[:maya_relative_lib_path])
17
-
18
- h[:lib_paths] = [ lib_path ]
19
-
20
- more_linker_opts = []
21
- case existing_settings[:os]
22
- when /linux_64/
23
- h[:include_paths] = [ File.join(existing_settings[:maya_location], "include" ) ]
24
- more_linker_opts = ["-Wl,-rpath,#{lib_path}"]
25
- when /darwin/
26
- more_linker_opts = ["-Wl,-executable_path,#{lib_path}"]
27
- h[:include_paths] = [ File.join(existing_settings[:maya_location],"devkit", "include" ) ]
28
- when /win_64/
29
- h[:include_paths] = [ File.join(existing_settings[:maya_location], "include" ) ]
30
- end
31
-
32
- h[:linker_options] ||= []
33
- h[:linker_options] |= more_linker_opts
34
-
35
-
36
- h[:compiler_options] |= [
37
- "-D\"PLUGIN_VERSION=\\\"#{existing_settings[:product_revision]}\\\"\"",
38
- "-D\"PLUGIN_VENDOR=\\\"#{existing_settings[:author_name].gsub(' ','')}\\\"\"",
39
- "-D\"MAYA_VERSION=\\\"#{existing_settings[:maya_version]}\\\"\""
40
- ]
41
-
42
- h
43
- end
44
- end
45
- end
46
-
47
-
data/lib/flak/rake/mod.rb DELETED
@@ -1,46 +0,0 @@
1
-
2
-
3
- module Flak
4
-
5
- module Mod
6
-
7
- def self.resolve_settings( existing_settings )
8
-
9
- f = existing_settings[:root] + '/config/mod.yml'
10
- h =Flak::Base.flatten_settings(f,existing_settings[:configuration], existing_settings[:os] )
11
-
12
- h
13
- end
14
-
15
-
16
- def tar_filename
17
- n = "#{@settings[:product_name]}-#{@settings[:product_revision]}"
18
- n += "-#{@settings[:os]}" unless @settings[:agnostic]
19
- n += ".tar.gz"
20
- n
21
- end
22
-
23
- def file_to_tar
24
- n = "#{@settings[:product_name]}/#{@settings[:product_revision]}"
25
- n += "-#{@settings[:os]}" unless @settings[:agnostic]
26
- n
27
- end
28
-
29
-
30
-
31
- def mod_instance_tasks
32
-
33
- desc "Build and tar up product to tar.gz."
34
- task :tar => :release do
35
- Dir.chdir( @settings[:target_release_path] ) do |d|
36
- sh "tar cfz #{tar_filename} #{file_to_tar}"
37
- end
38
- end
39
-
40
- end
41
-
42
-
43
- end
44
-
45
- end
46
-
@@ -1,29 +0,0 @@
1
-
2
-
3
-
4
- module Flak
5
-
6
- module Nuke
7
-
8
- def self.resolve_settings( existing_settings )
9
-
10
- f = existing_settings[:root] + '/config/nuke.yml'
11
- h =Flak::Base.flatten_settings(f,existing_settings[:configuration], existing_settings[:os] )
12
-
13
- case existing_settings[:os]
14
- when /linux_64/
15
- h[:nuke_location] = ""
16
- when /darwin/
17
- h[:nuke_location] = "/Applications/Nuke#{h[:nuke_version]}-32/Nuke#{h[:nuke_version]}.app/Contents"
18
- when /win_64/
19
- h[:nuke_location] = ""
20
- end
21
- h
22
- end
23
-
24
- def nuke_script_release_path(file)
25
- File.join(@settings[:versioned_os_release_path], 'nuke', 'scripts', file.pathmap('%f'))
26
- end
27
- end
28
- end
29
-
File without changes
@@ -1,2 +0,0 @@
1
- nuke_version: '6.0v5'
2
-