waggit 0.0.005 → 0.0.006

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 (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/wagon.rb +43 -6
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YmE2ZGYzYmU3YWFlYTFhNWFlZjIzNGFiYWJmOTgzOGU1ZmQ3NTU3YQ==
4
+ NDIyNzg5YWFkYTU4MGJjYmM0MmEwMzY1NmM1YzNkYzhkZjQyOTE3Ng==
5
5
  data.tar.gz: !binary |-
6
- YjFkNWUyMDgyMjUzZTY4MmUzOGMwY2EzNDQwZWE2YjkxMmE0ZWYwMQ==
6
+ Yjk1ZjU0OTk2YTRlMWZmMjBkMTU5Yjk5OGJhNzVhMTYzZDJlM2I4Nw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzUxYWJhY2FjYjY1NzVhZTEzZjdiNTk0NWRlNDU3MTA4NGRmMTg5MTQ2NjI3
10
- OTU1YjZkZWVmYTE5MGJjY2EyNTliNDMzNGRlY2I2ZjgwMTBmZDIwODEyYzQw
11
- YjllN2MxMzAxM2EyNjIzMzI2MTA4NzY2NTAyZDAyMjYxNzNkMTQ=
9
+ NTQzN2E2MzRmNTFkZGY5Y2UwNmZlMDBkMDA4OWI1OTczNjM5YWVhNjdjYTJi
10
+ OGMzNDMwODU3YWY1NmZlNmIzMDk4YTUxN2M3NDcxNDEwNWRlNTUyYjRjOTg5
11
+ ZjYxOTFmODAyZWVkNzBlMzRlNzU0MTJiMjc5ODJmMmQ1OWUyNTA=
12
12
  data.tar.gz: !binary |-
13
- MDM0NDIzN2QzOTI2MTRhYzMzZTRiYjlkNDA0MWM0MzMzMmYxODJmZTJlMWVi
14
- MGQwY2JjY2U4NGI0OTcwYTZiZTY1Y2RmZmU3YjBjMjhiZGQzODgwMTVmYTJh
15
- NTJkODA2MjFhNjgzNGJhNzkxNDgzNGZhM2VlYzk3NzIwYjk2NzU=
13
+ Y2VhYWM4Njg4YTA1NTNmYmI4NDkyNGZhNjEzZWI4OTZkNzc1ZWVmYzg0OTVh
14
+ MGE1NmRhZmZkYTY4Nzg0MjM3ZGY5ZmJhZmVlNTg3ZDQzZjMwMDBjYTg0MzUy
15
+ ZmEzMjFhNDc1NDNiYWNjMjNjNjI2MDU0MjkzN2JjNjQ0ZGVlNTE=
data/lib/wagon.rb CHANGED
@@ -3,16 +3,53 @@ require 'command.rb'
3
3
  class Wagon
4
4
 
5
5
  # Converts the provided options into the appropriate
6
- # string to append to the wagon command
7
- #
6
+ # string to append to the wagon command.
7
+ # Supported options:
8
+ # "-p" or "-pages": pages
9
+ # "-a" or "-theme_assets": theme_assets
10
+ # "-t" or "-translations": translations
11
+ # "-e" or "-content_entries": content_entries
12
+ # "-y" or "-content_types": content_types
13
+ # "-n" or "-snippets": snippets
14
+ # "-s" or "-site": site
15
+ #
8
16
  def self.process_options(options)
9
17
  resource_opts = []
10
18
  for option in options
11
19
  case option
12
- when "-p"
13
- resource_opts.push("pages")
14
- when "-a"
15
- resource_opts.push("theme_assets")
20
+ when "-p" or "-pages"
21
+ unless resource_opts.include? "pages"
22
+ resource_opts.push("pages")
23
+ end
24
+ when "-a" or "-theme_assets"
25
+ unless resource_opts.include? "theme_assets"
26
+ resource_opts.push("theme_assets")
27
+ end
28
+ end
29
+ when "-t" or "-translations"
30
+ unless resource_opts.include? "translations"
31
+ resource_opts.push("translations")
32
+ end
33
+ end
34
+ when "-e" or "-content_entries"
35
+ unless resource_opts.include? "content_entries"
36
+ resource_opts.push("content_entries")
37
+ end
38
+ end
39
+ when "-y" or "-content_types"
40
+ unless resource_opts.include? "content_types"
41
+ resource_opts.push("content_types")
42
+ end
43
+ end
44
+ when "-n" or "-snippets"
45
+ unless resource_opts.include? "snippets"
46
+ resource_opts.push("snippets")
47
+ end
48
+ end
49
+ when "-s" or "-site"
50
+ unless resource_opts.include? "site"
51
+ resource_opts.push("site")
52
+ end
16
53
  end
17
54
  end
18
55
  unless resource_opts.empty?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: waggit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.005
4
+ version: 0.0.006
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mere Agency
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2014-08-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A way of integrating LocomotiveCMS/Wagon with git. This is under development
14
14
  and not ready for active use.