forty 0.2.0 → 0.2.1

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: 1c69cf32507f1a087a044f2571606170c3c28459
4
- data.tar.gz: 7d13e1d39898bc33077e627463abff4040f0bb97
3
+ metadata.gz: 2dc92f794265aad44394529187b019718c6ea1df
4
+ data.tar.gz: 3deb3ea465ad648c24b890dfdfa3e7b537049d1c
5
5
  SHA512:
6
- metadata.gz: a77cdb8ce81e28740ece0fd5d6fc02809cb9c36d855b638224480476f07f18b63b4437882453e036d496fb31d63ddfd9c1d68d4b5beb69b7cf3bd9a5e40cc0e7
7
- data.tar.gz: 7d5afa71ef584d53e72ae07b3a72741028fdabec327246381a8eb7d2792dd64d40a82f74c950822528d61eb73fcfd55566cdad1406836e10cda82831633a92c4
6
+ metadata.gz: 8e74a9e2934e0fa3cd229f36a29e3dff7c64947fc91eec48085e5b353a27e855133a01116a82d9a2b1d1336bc3e2134791ea29e103e69c927944ab489b22efdb
7
+ data.tar.gz: 4a1d220596760596de4d9df3a759ba99291d77c9e2132d23a6b02bf3e4fa856c6e013e0d9ab92c1fd760993d13cbc705e6a16659c0a16f0bfc38e4e955af4e20
@@ -10,8 +10,9 @@ module Forty
10
10
  namespace :acl do
11
11
  namespace :sync do
12
12
  desc 'syncs entire acl config with database'
13
- task :all, [:disable_dry_run] do
14
- Forty.sync
13
+ task :all, [:disable_dry_run] do |t, args|
14
+ dry_run = args[:disable_dry_run].eql?('true') ? false : true
15
+ Forty.sync(dry_run)
15
16
  end
16
17
  end
17
18
  end
data/lib/forty/sync.rb CHANGED
@@ -2,14 +2,14 @@
2
2
 
3
3
  module Forty
4
4
 
5
- def self.sync
5
+ def self.sync(dry_run=true)
6
6
  Forty::Sync.new(
7
7
  Forty.configuration.logger,
8
8
  Forty.configuration.master_username,
9
9
  Forty.configuration.schemas,
10
10
  Forty::ACL.new(Forty.configuration.acl_file),
11
11
  Forty.instance_variable_get(:@database),
12
- false
12
+ dry_run
13
13
  ).run
14
14
  end
15
15
 
@@ -49,7 +49,7 @@ Starting sync...
49
49
  / /_/ __ \\/ ___/ __/ / / /
50
50
  / __/ /_/ / / / /_/ /_/ /
51
51
  /_/ \\____/_/ \\__/\\__, / Database ACL Sync
52
- /____/ v0.2.0
52
+ /____/ v0.2.1
53
53
 
54
54
  ===============================================================================
55
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefanie Grunwald