pike 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30de0c65903d06cbd3f718c6af49e5c8cc2e918c
4
- data.tar.gz: 7c7b4ec937f3b7685c2de7cc9c0aa775644f57de
3
+ metadata.gz: f0727fd32c7b4714b178eeb300fa952926a97231
4
+ data.tar.gz: 9fb65643a1a6da895c59916c0806da15396f776a
5
5
  SHA512:
6
- metadata.gz: 60f92c1f3d902ab47a03aa2512ca03c2995b39dd55199000c57523f030f5c851e60d7628d70180a6a578afa36a92c062000f123229c7efc2cd4d5c9412935941
7
- data.tar.gz: fca17b722cbf1c71283c1a1e9762efd4af75df61acbdc32fa902a5aa9d5245ece7c843729d2b0219db7bee4953b9f293ac80edfbb9a7d0b51912767a01892b1d
6
+ metadata.gz: c1f0ae48cac9a9e4dd9bf8d8df9b396565c6f697e8fcd8bd85fc07ad046364a280f2db69fc7b1ccb1683c621ccdb744c178291c2ff0da08b44e613b1fac8153c
7
+ data.tar.gz: fde90978e8913ac7720d074a432ce98a927121a3ccf5f5555e7f8a7ecddb059ec173eaea8556ef305001cab864f8aea4c0b53d8b78c004e8ffb1a61a51320578
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pike (0.0.2)
4
+ pike (0.0.3)
5
5
  net-scp (~> 1.0)
6
6
  net-ssh (~> 2.1)
7
7
  net-ssh-shell (~> 0.2)
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 and load config
77
- load_pikefile
76
+ # Step 1: Check if the Pikefile exists
77
+
78
78
 
79
79
  # step 2: Internal stuff
80
80
  Logger.init
81
81
 
82
- # Step 3: Set environment
83
- set_environment
82
+ # Step 3: Load tasks.rb
83
+ prepare
84
+
85
+ # Step 4: Load Pikefile
86
+ load_pikefile
84
87
 
85
- # Step 4: Load tasks.rb
86
- prepare
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
@@ -1,3 +1,3 @@
1
1
  module Pike
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pike
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Kammerl