Sha256: 3ebc51d362a29c1aabc33ac19875b3668f80db7e324c0d442b911bc0b0e1fd39

Contents?: true

Size: 267 Bytes

Versions: 7

Compression:

Stored size: 267 Bytes

Contents

module HaveAPI::Fs::Components
  class CreateActionDir < ActionDir
    help_file :action_dir

    def exec
      ret = super
      
      if ret.is_a?(HaveAPI::Client::Response) && ret.ok?
        context[:resource_dir].refresh
      end

      ret
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
haveapi-fs-0.11.0 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.10.0 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.9.0 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.8.0 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.7.1 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.7.0 lib/haveapi/fs/components/create_action_dir.rb
haveapi-fs-0.1.0 lib/haveapi/fs/components/create_action_dir.rb