From 92d1f3431a9adfa66ec84bd9fb886a76941ce946 Mon Sep 17 00:00:00 2001 From: r-fennell <37326790+r-fennell@users.noreply.github.com> Date: Thu, 18 Oct 2018 12:39:08 +0100 Subject: [PATCH] Add ? to boolean method (#152) * Add ? to boolean method * Sign-off Signed-off-by: Ruairi Fennell --- README.md | 1 + libraries/azurerm_storage_account.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c3124d3e..e764fa62b 100644 --- a/README.md +++ b/README.md @@ -334,3 +334,4 @@ To disable optional components run `rake options[]` including only the optional rake options[] # disable all optional components rake options[option_1] # enables option_1 disabling all other optional components ``` + \ No newline at end of file diff --git a/libraries/azurerm_storage_account.rb b/libraries/azurerm_storage_account.rb index cb2ecd0da..c4ffb41fd 100644 --- a/libraries/azurerm_storage_account.rb +++ b/libraries/azurerm_storage_account.rb @@ -30,7 +30,7 @@ def initialize(name: 'default', resource_group: nil) @exists = true end - def have_recently_generated_access_key + def has_recently_generated_access_key? now = Time.now ninety_days_ago = ((60*60)*(24*90)) upper_bound = to_utc(now)