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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f958d4ef65a32214e77b59bd64e55894fc2b7334
4
- data.tar.gz: 7eafac847d8062ab64ef4a95e8ce986f7b5e13fe
3
+ metadata.gz: 3c34bcdbb75b726ad7a1d04299dbd381e99fcfc0
4
+ data.tar.gz: 3f50d334614b915f3d2a4c319bf78ce9aaa33954
5
5
  SHA512:
6
- metadata.gz: 3dc4f93e8792605233195cf06723823930e5db0a45f9c9e0f791f3c3b1f08d2638e8fbd71efc7a0abf43e7093db64dd9a6679b9b78b665cf374781826798ca8d
7
- data.tar.gz: 0e5b3053e7d0188ad5d45b3b20f8a35b2cbbe2f29e4cf3e5e1b409db5881b6f9b6acfe1d45c6970b8da042eb8b9768d1edf97fa4933cb8144830a4f772f8efb4
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
- raise "Should not be deploying for: #{@branch}"
48
+ puts "Skipping deploy, no mapping set up for branch: #{@branch}"
47
49
  end
48
50
  end
49
51
 
@@ -1,3 +1,3 @@
1
1
  module BigcommerceTool
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigcommerce_tool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Vanderhoof