We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8683821 commit 818e45bCopy full SHA for 818e45b
lib/puppet/type/sshkey.rb
@@ -12,6 +12,8 @@ def name
12
"#{self[:name]}@#{self[:type]}"
13
end
14
15
+ alias_method :title, :name
16
+
17
def self.parameters_to_include
18
[:name, :type]
19
spec/unit/type/sshkey_spec.rb
@@ -81,5 +81,10 @@
81
described_class.new(name: 'host,host.domain,ip')
82
}.to raise_error(Puppet::Error, %r{No comma in resourcename})
83
84
85
+ it 'aliases :title to :name' do
86
+ key = described_class.new(name: 'foo', type: :rsa)
87
+ expect(key.name).to eq key.title
88
+ end
89
90
0 commit comments