xcode_template_maker 0.0.1 → 0.0.2

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 (2) hide show
  1. data/bin/export_xcode_file_list +26 -0
  2. metadata +4 -2
@@ -0,0 +1,26 @@
1
+ #! /usr/bin/ruby
2
+ $: << File.expand_path(File.join(File.dirname(__FILE__), "..", "lib"))
3
+ require "yaml_file_template"
4
+ require "file_template"
5
+ require "file_template_exporter"
6
+ require 'optparse'
7
+
8
+ options = {}
9
+ OptionParser.new do |opts|
10
+ opts.banner = "Usage: export_xcode_file_list -y [path/to/yaml/file]"
11
+
12
+ opts.on("-y x", "--yaml", String, :REQUIRED, "YAML Configuration for template") do |yaml_path|
13
+ options[:relative_yaml_path] = yaml_path
14
+ end
15
+ end.parse!
16
+
17
+ if options[:relative_yaml_path].nil?
18
+ puts "Usage: export_xcode_file_list -y [path/to/yaml/file]"
19
+ elsif !File.exists?(options[:relative_yaml_path])
20
+ puts "YAML file: #{options[:relative_yaml_path]} does not exist"
21
+ else
22
+ yaml = File.read(options[:relative_yaml_path])
23
+ file_template = YAMLFileTemplate.load_from_yaml(yaml)
24
+ file_template_exporter = FileTemplateExporter.new(file_template)
25
+ puts file_template_exporter.to_xml
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcode_template_maker
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:
@@ -14,7 +14,8 @@ dependencies: []
14
14
  description: Much easier way to create templates for Xcode than editing the xml
15
15
  email:
16
16
  - emeyer@8thlight.com
17
- executables: []
17
+ executables:
18
+ - export_xcode_file_list
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
@@ -25,6 +26,7 @@ files:
25
26
  - lib/file_template.rb
26
27
  - lib/file_template_exporter.rb
27
28
  - lib/yaml_file_template.rb
29
+ - bin/export_xcode_file_list
28
30
  homepage: https://github.com/ericmeyer/xcode_template_maker
29
31
  licenses: []
30
32
  post_install_message: