Skip to content

Commit

Permalink
Merge pull request #121 from sethvargo/schisamo/architecture-fix
Browse files Browse the repository at this point in the history
Properly expose `Architecture#i386?` in the DSL
  • Loading branch information
sethvargo committed Oct 6, 2015
2 parents a9c3260 + 943ea8b commit 035f1ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/chef/sugar/architecture.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ def _64_bit?; Chef::Sugar::Architecture._64_bit?(node); end

# @see Chef::Sugar::Architecture#_32_bit?
def _32_bit?; Chef::Sugar::Architecture._32_bit?(node); end
alias_method :i386?, :_32_bit?

# @see Chef::Sugar::Architecture#intel?
def i386?; Chef::Sugar::Architecture.i386?(node); end

# @see Chef::Sugar::Architecture#intel?
def intel?; Chef::Sugar::Architecture.intel?(node); end
Expand Down

0 comments on commit 035f1ed

Please sign in to comment.