aemninja 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b056dc4411510efec8e639fa6ba3cd1c96972a6
4
- data.tar.gz: d3bdc312819de1b08028ed15da1094a43d4ae1f1
3
+ metadata.gz: 0aa2a1b4a83a639e19fb4dcc083f30b9bd5f5e51
4
+ data.tar.gz: c67c213fcf39f522cbfa1c5fd8eac9efecdb268a
5
5
  SHA512:
6
- metadata.gz: c88921277dba3c48bdcb5e4e43b2f36009f320d2664429bc64dbf5919b24ba5600c2dc4275d64f31565990ada29e9db6e3c74bbc5753c63c8d5d0bf5264e4531
7
- data.tar.gz: f0d504be27fd82b782f6a74e361ec2f07791456a9ee8e203729f791e2404fbc67e5543f44a93d48ee31f2acf671c996ae047cc98b17c37372980c90aee420268
6
+ metadata.gz: f08b07ca418ee71d98555dfd62a35c0d647d31aca155ba74a7b8ed0febe9fec0d2348da7543345040947fbdf5899bf773dfe92d68fd1c0bca97653bc8dd35cd4
7
+ data.tar.gz: 3fa02bc0b12fd8eb7e44acd8d93cc742436586f44ac562419e4cb77e54b04fef1b8e257797e42d17d1c0390fb90211c60ca253630dafeabf20bdd2bf19257bdc
data/README.md CHANGED
@@ -7,3 +7,33 @@
7
7
  1. At the command prompt, initialize aemninja:
8
8
 
9
9
  $ aemninja init
10
+
11
+
12
+ # Deployment
13
+
14
+ ## Local
15
+ aemninja deploy apps/target/your-magic-project.zip
16
+
17
+ ## Staging
18
+ aemninja deploy apps/target/your-magic-project.zip staging
19
+
20
+ ## Production
21
+ aemninja deploy apps/target/your-magic-project.zip production
22
+
23
+
24
+ But how does it now the details about my environments?
25
+
26
+ .aemninja/config/environments/local.rb
27
+ .aemninja/config/environments/staging.rb
28
+ .aemninja/config/environments/production.rb
29
+ author {...}
30
+
31
+ ## Can I addadditional environments?
32
+
33
+ Sure! It's as easy as adding another config file to the environments directory. The name of the file can then be used with aemninja.
34
+
35
+ ### New Environment called 'qa'
36
+ 1. Copy existing config file
37
+ cp .aemninja/config/environments/local.rb .aemninja/config/environments/qa.rb
38
+
39
+ 2. Change the configuration to match your qa environment
@@ -92,7 +92,16 @@ module Aem
92
92
 
93
93
  #response_hash = Hash.from_xml(response_xml.body)
94
94
 
95
- if Hash.from_xml(response_xml.body)["crx"]["response"]["status"] == 'ok'
95
+ errors = response_xml.body.each_line.grep /^E/
96
+
97
+ if errors.present?
98
+ puts
99
+ puts
100
+ puts " ERRORS:"
101
+ puts errors
102
+ puts
103
+ return false
104
+ elsif Hash.from_xml(response_xml.body)["crx"]["response"]["status"] == 'ok'
96
105
  return true
97
106
  else
98
107
  return false
@@ -1,3 +1,3 @@
1
1
  module Aemninja
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aemninja
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - AEMNinja
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-11 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport