cookbooks/openssl/resources/x509.rb in from-scratch-0.1.1 vs cookbooks/openssl/resources/x509.rb in from-scratch-0.2.0

- old
+ new

@@ -1,16 +1,16 @@ -actions [ :create ] +actions [:create] default_action :create -attribute :name, :kind_of => String, :name_attribute => true +attribute :name, :kind_of => String, :name_attribute => true attribute :owner, :kind_of => String -attribute :group, :kind_of => String -attribute :expire, :kind_of => Fixnum -attribute :mode -attribute :org, :kind_of => String, :required => true -attribute :org_unit, :kind_of => String, :required => true -attribute :country, :kind_of => String, :required => true +attribute :group, :kind_of => String +attribute :expire, :kind_of => Integer +attribute :mode, :kind_of => [Integer, String] +attribute :org, :kind_of => String, :required => true +attribute :org_unit, :kind_of => String, :required => true +attribute :country, :kind_of => String, :required => true attribute :common_name, :kind_of => String, :required => true -attribute :key_file, :kind_of => String, :default => nil -attribute :key_pass, :kind_of => String, :default => nil -attribute :key_length, :kind_of => Fixnum, :default => 2048 +attribute :key_file, :kind_of => String, :default => nil +attribute :key_pass, :kind_of => String, :default => nil +attribute :key_length, :equal_to => [1024, 2048, 4096, 8192], :default => 2048