arc_weld 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +3 -0
  6. data/Guardfile +58 -0
  7. data/LICENSE.txt +674 -0
  8. data/README.md +73 -0
  9. data/Rakefile +6 -0
  10. data/arc_weld.gemspec +34 -0
  11. data/bin/setup +7 -0
  12. data/bin/weld +8 -0
  13. data/lib/arc_weld/archive.rb +87 -0
  14. data/lib/arc_weld/cli/project.rb +116 -0
  15. data/lib/arc_weld/cli/readers/relation_csv.rb +41 -0
  16. data/lib/arc_weld/cli/readers/resource_csv.rb +64 -0
  17. data/lib/arc_weld/cli.rb +45 -0
  18. data/lib/arc_weld/helpers.rb +12 -0
  19. data/lib/arc_weld/reference.rb +51 -0
  20. data/lib/arc_weld/relationship.rb +96 -0
  21. data/lib/arc_weld/relationships/customer_of.rb +28 -0
  22. data/lib/arc_weld/relationships/has_alternate_interface.rb +27 -0
  23. data/lib/arc_weld/relationships/has_child.rb +42 -0
  24. data/lib/arc_weld/relationships/has_customer.rb +28 -0
  25. data/lib/arc_weld/relationships/has_location.rb +16 -0
  26. data/lib/arc_weld/relationships/in_category.rb +26 -0
  27. data/lib/arc_weld/relationships/in_network.rb +26 -0
  28. data/lib/arc_weld/relationships/in_zone.rb +41 -0
  29. data/lib/arc_weld/relationships/location_of.rb +28 -0
  30. data/lib/arc_weld/resource.rb +149 -0
  31. data/lib/arc_weld/resource_definitions.rb +7 -0
  32. data/lib/arc_weld/resources/asset.rb +33 -0
  33. data/lib/arc_weld/resources/asset_category.rb +40 -0
  34. data/lib/arc_weld/resources/customer.rb +16 -0
  35. data/lib/arc_weld/resources/group.rb +29 -0
  36. data/lib/arc_weld/resources/location.rb +18 -0
  37. data/lib/arc_weld/resources/network.rb +14 -0
  38. data/lib/arc_weld/resources/zone.rb +65 -0
  39. data/lib/arc_weld/templates/project-csv/.gitignore.tt +2 -0
  40. data/lib/arc_weld/templates/project-csv/Gemfile.tt +3 -0
  41. data/lib/arc_weld/templates/project-csv/Thorfile.tt +9 -0
  42. data/lib/arc_weld/templates/project-csv/in/assets.csv.tt +2 -0
  43. data/lib/arc_weld/templates/project-csv/in/categories.csv.tt +3 -0
  44. data/lib/arc_weld/templates/project-csv/in/customer_groups.csv.tt +3 -0
  45. data/lib/arc_weld/templates/project-csv/in/customers.csv.tt +3 -0
  46. data/lib/arc_weld/templates/project-csv/in/group_categories.csv.tt +3 -0
  47. data/lib/arc_weld/templates/project-csv/in/locations.csv.tt +6 -0
  48. data/lib/arc_weld/templates/project-csv/in/networks.csv.tt +3 -0
  49. data/lib/arc_weld/templates/project-csv/in/zone_locations.csv.tt +2 -0
  50. data/lib/arc_weld/templates/project-csv/in/zones.csv.tt +2 -0
  51. data/lib/arc_weld/templates/project-csv/lib/thor/README.txt.tt +2 -0
  52. data/lib/arc_weld/templates/project-csv/lib/thor/sample.thor.tt +7 -0
  53. data/lib/arc_weld/templates/project-csv/out/README-archive.txt.tt +5 -0
  54. data/lib/arc_weld/templates/project-csv/weld.json.tt +39 -0
  55. data/lib/arc_weld/version.rb +3 -0
  56. data/lib/arc_weld.rb +19 -0
  57. metadata +269 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8be92b6b4bc6671d3fad7ecbd85bdc9f416dca81
4
+ data.tar.gz: 34fff3801941baa988e048d7a4ee67d3076dab92
5
+ SHA512:
6
+ metadata.gz: 0e72e252985832fab45a9d4005a1b9a0962ee36975d96ac075f80ab2427662f8047d098d2ce2a73ab1b4d37a929f058fe9361cbf0c7f36b506c5b54d477c3d89
7
+ data.tar.gz: 8444e68093ca41fb9e69885a0c36d4c4ec0f31e836e9825331181ac455440324222702480c430807bc58e1814ab97cf38b5051c99c23d76c806194e3db54b94d
data/.gitignore ADDED
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ /vendor/
11
+ .ruby-version
12
+ /out/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.3
4
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/Guardfile ADDED
@@ -0,0 +1,58 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch('spec/shared_instances.rb') { rspec.spec_dir }
50
+ watch('spec/spec_class_definitions.rb') { rspec.spec_dir }
51
+ watch('spec/spec_module_definitions.rb') { rspec.spec_dir }
52
+ watch(rspec.spec_files)
53
+
54
+ # Ruby files
55
+ ruby = dsl.ruby
56
+ dsl.watch_spec_files_for(ruby.lib_files)
57
+
58
+ end