pike 0.0.2 → 0.0.3
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/pike/main.rb +21 -9
- data/lib/pike/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0727fd32c7b4714b178eeb300fa952926a97231
|
4
|
+
data.tar.gz: 9fb65643a1a6da895c59916c0806da15396f776a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1f0ae48cac9a9e4dd9bf8d8df9b396565c6f697e8fcd8bd85fc07ad046364a280f2db69fc7b1ccb1683c621ccdb744c178291c2ff0da08b44e613b1fac8153c
|
7
|
+
data.tar.gz: fde90978e8913ac7720d074a432ce98a927121a3ccf5f5555e7f8a7ecddb059ec173eaea8556ef305001cab864f8aea4c0b53d8b78c004e8ffb1a61a51320578
|
data/Gemfile.lock
CHANGED
data/lib/pike/main.rb
CHANGED
@@ -73,17 +73,20 @@ module Pike
|
|
73
73
|
|
74
74
|
def run
|
75
75
|
begin
|
76
|
-
# Step 1: Check if the Pikefile exists
|
77
|
-
|
76
|
+
# Step 1: Check if the Pikefile exists
|
77
|
+
|
78
78
|
|
79
79
|
# step 2: Internal stuff
|
80
80
|
Logger.init
|
81
81
|
|
82
|
-
|
83
|
-
|
82
|
+
# Step 3: Load tasks.rb
|
83
|
+
prepare
|
84
|
+
|
85
|
+
# Step 4: Load Pikefile
|
86
|
+
load_pikefile
|
84
87
|
|
85
|
-
|
86
|
-
|
88
|
+
# Step 5: Set environment
|
89
|
+
set_environment
|
87
90
|
|
88
91
|
# Step 5: Run deployment lifecycle for the given environment
|
89
92
|
run_lifecycle
|
@@ -96,15 +99,24 @@ module Pike
|
|
96
99
|
end
|
97
100
|
|
98
101
|
|
102
|
+
##
|
103
|
+
## Check if Pikefile exists
|
104
|
+
##
|
105
|
+
|
106
|
+
def check_pikefile
|
107
|
+
action "#{@config_char} Checking Pikefile" do
|
108
|
+
# Check if file exists
|
109
|
+
raise 'No Pikefile found' unless File.exist?(Dir.pwd + '/Pikefile')
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
|
99
114
|
##
|
100
115
|
## Load Pikefile
|
101
116
|
##
|
102
117
|
|
103
118
|
def load_pikefile
|
104
119
|
action "#{@config_char} Loading Pikefile" do
|
105
|
-
# Check if file exists
|
106
|
-
raise 'No Pikefile found' unless File.exist?(Dir.pwd + '/Pikefile')
|
107
|
-
|
108
120
|
# Load the Pikefile
|
109
121
|
DSL::Pikefile.load('Pikefile')
|
110
122
|
end
|
data/lib/pike/version.rb
CHANGED