aemninja 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +30 -0
- data/lib/aemninja/aem.rb +10 -1
- data/lib/aemninja/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0aa2a1b4a83a639e19fb4dcc083f30b9bd5f5e51
|
4
|
+
data.tar.gz: c67c213fcf39f522cbfa1c5fd8eac9efecdb268a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/aemninja/aem.rb
CHANGED
@@ -92,7 +92,16 @@ module Aem
|
|
92
92
|
|
93
93
|
#response_hash = Hash.from_xml(response_xml.body)
|
94
94
|
|
95
|
-
|
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
|
data/lib/aemninja/version.rb
CHANGED
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.
|
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
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|