bigcommerce_tool 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bigcommerce_tool/deployer.rb +3 -1
- data/lib/bigcommerce_tool/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: 3c34bcdbb75b726ad7a1d04299dbd381e99fcfc0
|
4
|
+
data.tar.gz: 3f50d334614b915f3d2a4c319bf78ce9aaa33954
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dce095bcc5b3b91fb6eb45cd0e89a8e83c3c00e32d4fb1e3bb51d52f62dcee145050d7d007bb252cefafb15dd905f73fb62fde1b0a76c4e63c26f98a3b7a5c2
|
7
|
+
data.tar.gz: c81f083a0b2c9ea96941d80752efa33e44c061edf806724be9d61ce04c4dd77dae7e4b47bb36459d5d90e88f30da463ba14da638d94bbabfd4813159f610e267
|
@@ -7,6 +7,8 @@ module BigcommerceTool
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def deploy
|
10
|
+
return unless env_name
|
11
|
+
|
10
12
|
Net::DAV.start(URI("https://#{url}/dav/")) do |dav|
|
11
13
|
dav.credentials(ENV['USERNAME'], password)
|
12
14
|
puts "push to: #{url}"
|
@@ -43,7 +45,7 @@ module BigcommerceTool
|
|
43
45
|
|
44
46
|
def env_name
|
45
47
|
environments_mapping[@branch].or_if_nil? do
|
46
|
-
|
48
|
+
puts "Skipping deploy, no mapping set up for branch: #{@branch}"
|
47
49
|
end
|
48
50
|
end
|
49
51
|
|